开发程序的时候,好几次都看到后台打出下面的错误日志。 但一直重现不了。
=ERROR REPORT==== 20-Feb-2013::14:07:56 ===
module: misultin_websocket
line: 243
linked websocket controlling loop crashed with reason: killed
直到昨天再测试程序时,突然发现页面报出close提示,我以为是timeout关闭的,查看了一下时间戳和日志,发现不是超市引起。但正好看到上面错误 log。也没发现什么直接关系。
这时候我留意到ws_session(用来存储用户与ws之间的关系)中的记录也没有清除,这就证明是进程意外退出引起的。
反复实验发现,不论建立了多少个websocket连接。只要执行两次http请求所有的连接都会报出close错误。同时日志记录linked websocket controlling loop crashed with reason: killed。这下重现了此错误。回想了一下,以前的token超时,丢失用户消息都很可能与此有着间接的关系。
这个问题比较严重,花了几个小时。一步步跟踪代码才发现。 每次http请求都会执行下面两句话。
63 Result = code:purge(Module1),
65 case code:load_binary(Module1, File, Bin) of
OK,找到问题了
purge(Module) -> boolean()
Types:
Purges the code for Module, that is, removes code marked as old. If some processes still linger in the old code, these processes are killed before the code is removed.
Returns true if successful and any process needed to be killed, otherwise false.
load_binary(Module, Filename, Binary) ->
{module, Module} | {error, What}
Types:
| loaded_ret_atoms()
This function can be used to load object code on remote Erlang nodes. The argument Binary must contain object code for Module. Filename is only used by the code server to keep a record of from which file the object code for Module comes. Accordingly, Filename is not opened and read by the code server.
Returns {module, Module} if successful, or {error, sticky_directory} if the object code resides in a sticky directory, or {error, badarg} if any argument is invalid. Also if the loading fails, an error tuple is returned. See erlang:load_module/2 for possible values of What.
相关推荐
☆ 资源说明:☆ ...Linked Data presents the Linked Data model in plain jargon free language to Web developers Avoiding the overly academic terminology of the Semantic Web this [更多]
linked_list_to_string:https
我们需要一个应用程序来减轻我们的大脑负担,并写下我们日常会议或其他 Scrum 活动可能需要的东西,这些东西根本无法放入票中。 特征 :calendar: 每天写下任何你想要的东西 :writing_hand: 支持各种文本样式以及...
Linked_List_in_C:用C编写的链接列表
Its strong community, encouragement of idiomatic style, and statically-linked binary artifacts make integrating it with other technologies and managing microservices at scale consistent and intuitive...
Nanocomposite electrolytes in Oxymethylene-linked Polyoxyethylene Multi-block Polymer: FT-IR, Spectral transmittance and Conductivity studies,张树鹏,Fu Xiangkai ,Oxymethylene-linked polyoxyethylene...
School-linked and school-based health services: A renewed call for collaboration between school psychologists and medical professionals Psychology in rhe Schools Volume 32, July 19YS SCHOOL-...
Linked The New Science of Networks
Compiled with: gcc (Debian 8.3.0-6) 8.3.0 Compiler flags: -O2 -g -Wall -Wextra -pedantic -Wno-cast-function-type -ffunction-sections -fdata-sections Linked against: wxWidgets: 3.2.1 SQLite: 3.39....
该书描述了网络页面链接之间的复杂系统,非常不错的经典书籍。
关于algorithm and data structure的一个linked list的C++的code
leetcode伪代码convert-binary-number-in-a-linked-list-to-integer 题目解读: 题目来源: 原文: Given head which is a reference node to a singly-linked list. The value of each node in the linked list is ...
Photoinduced Bending Behaviour of Cross-linked Liquid Crystalline Polymers with High Cross-linking Densities,蒋臻,吕久安,In this paper, highly crosslinked liquid-crystalline polymer (CLCP) films ...
leetcode 推前 2021 年排名前 43 的链接列表面试问题和答案。 您可以在此处查看所有 43 个链接列表面试问题 :backhand_index_pointing_...需要注意的是head并不是一个单独的节点,而是对第一个节点的引用。 如果列表为
Capistrano链接的文件非常方便,但是在首次部署时,您可能会遇到一个麻烦的问题–无法部署,因为该文件不存在,但是该文件是在部署后创建的。 不好了! 安装 将此行添加到您的应用程序的Gemfile中: gem '...
:floppy_disk: 文件永远属于您,您可以在~/Documents/linked找到它们 即将推出 :star: 评价你的日子 :spiral_calendar: 月份概述 安装 下载最新版本并运行该应用程序,或者 克隆回购 纱 纱线电子:发球
creat() linked list;print(),output linked list;insert(),input index, before data(index)insert new data,if index >c,insert into the end. delede(),delete data(index),0;change(),input index_i and index_...
如何把Excel 文件变成 Linked Server 的 SQL源码。 好处是你可以很轻松的用 SELECT 来拿 Excel 里的数据。 如:SELECT * FROM ExcelLinkedServer
linked data 资源确定的相关知识简介
mt-plugin-linked-file-to-entry 链接到条目的文件。