dklab_realplexor
dklab_realplexor copied to clipboard
502 Bad Gateway через 21s
Почему-то вдруг nginx стал возвращать 502 Bad Gateway, после того как JS-клиент подключился и ждет.
в логах тихо Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [Thu Sep 20 13:04:01 2012] WAIT: 10.249.190.163:56060: DEBUG: [1348146221.57005001000000:demo_460128] connection closed Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [pairs_by_fhs=2 data_to_send=1 connected_fhs=1 online_timers=2 cleanup_timers=1 events=8] Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [Thu Sep 20 13:04:01 2012] IN: 10.6.10.61:56216: DEBUG: connection opened Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [pairs_by_fhs=2 data_to_send=1 connected_fhs=1 online_timers=2 cleanup_timers=1 events=8] Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [Thu Sep 20 13:04:01 2012] IN: 10.6.10.61:56216: DEBUG: read 130 bytes Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [pairs_by_fhs=2 data_to_send=1 connected_fhs=1 online_timers=2 cleanup_timers=1 events=8] Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [Thu Sep 20 13:04:01 2012] IN: 10.6.10.61:56216: DEBUG: parsed IDs Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [pairs_by_fhs=2 data_to_send=1 connected_fhs=1 online_timers=2 cleanup_timers=1 events=8] Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [Thu Sep 20 13:04:01 2012] IN: 10.6.10.61:56216: DEBUG: added data for [demo_socdate] Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [pairs_by_fhs=2 data_to_send=1 connected_fhs=1 online_timers=2 cleanup_timers=1 events=8] Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [Thu Sep 20 13:04:01 2012] IN: 10.6.10.61:56216: DEBUG: connection closed Sep 20 13:04:01 db realplexor/dklab_realplexor.conf: [pairs_by_fhs=2 data_to_send=1 connected_fhs=1 online_timers=2 cleanup_timers=1 events=8]
конфиг: %CONFIG = ( # After starting and opening ports, switch to this user and his group.
SU_USER => "nobody",
SU_USER => "myuser",
# WAIT line (change requires restart).
#WAIT_TIMEOUT => 300,
WAIT_TIMEOUT => 20,
WAIT_MAXLEN => 1024 * 5,
WAIT_ADDR => [
'0.0.0.0:8088',
'127.0.0.1:8088',
# If you need to handle more than 65536 parallel client
# connections, specify multiple IP addresses here
# instead of 0.0.0.0 (or multiple ports).
],
# IN line (change requires restart).
IN_TIMEOUT => 60,
IN_MAXLEN => 1024 * 200,
IN_ADDR => [
'0.0.0.0:10010'
'127.0.0.1:10010'
],
# Memcached online notification servers.
ID_BINDINGS_SERVERS => [
'127.0.0.1:11211'
],
# Hostname of the current server.
ID_BINDINGS_SERVER_NAME => "default",
# How much events (e.g. online/offline changes) to hold in each
# of 3 event chains accessible via WATCH cmd.
EVENT_CHAIN_LEN => 1000,
# Hook: called before sending a data block to a client. If it returns
# false, data will not be sent. Prototype:
# sub (
# id => $, # ID of this data block
# cursor => $, # cursor of this block
# rdata => \$, # data of the block
# limit_ids => \% # limit this block visibility to these listeners (IDs are in keys)
# listen_cursor => $, # at which cursor client listens now
# listen_pairs => \@ # at which [ [ cursor, ID ], ... ] client listens else
# )
HOOK_CHECK_VISIBILITY => undef,
# How much time to treat the client online after disconnection.
OFFLINE_TIMEOUT => 30,
# Maximum queue length for each ID.
MAX_DATA_FOR_ID => 30,
# An ID queue is cleared after this number of seconds if
# no data is arrived.
CLEAN_ID_AFTER => 3600,
# Charset used in Content-Type for JSON and other responses.
CHARSET => "utf-8",
# Which users are allowed to access the engine.
USERS_FILE => "dklab_realplexor.htpasswd",
# Content of IFRAME which is returned on identifier=IFRAME request.
IFRAME_FILE => "dklab_realplexor.html",
# IFRAME ID.
IFRAME_ID => "IFRAME",
# Content of SCRIPT on identifier=SCRIPT request.
SCRIPT_FILE => "dklab_realplexor.js",
# IFRAME ID.
SCRIPT_ID => "SCRIPT",
# Name of "identifier" marker.
IDENTIFIER => "identifier",
# JS: max bounces.
JS_MAX_BOUNCES => 10,
# JS: reconnect delay.
JS_WAIT_RECONNECT_DELAY => 0.01,
# JS: what URI is used to access realplexor.
JS_WAIT_URI => '/',
# Is debug mode enabled for JS?
JS_DEBUG => 1,
# Debug output verbosity (decrease to speedup):
#0: totally silent, fastest mode
#1: show messages only, without timestamps
#2: show messages only, with timestamps
#3: show messages, timestamps and storage statistics
VERBOSITY => 0,
# If a realplexor daemon consumes more memory than specified here,
# it is cruelly restarted. Specify 0 to disable restarting.
MAX_MEM_MB => 0,
);
return 1;
рестартнул nginx - 502 пропали .. из-за чего это может быть?