Bayex4Netty - Server restart leads to infinite connection requests

Luís M. Costa luis.m.costa at gmail.com
Thu Sep 3 09:57:48 EDT 2009


  Hi,

  If a server, with resisted subscribers, goes down and then restarts it
will be flooded with connect requests.
  This happens because clients sent a “/meta/connect” message with a
previous attributed client identifier, witch is no longer valid. As the
server (Bayeux4Netty) doesn't recognize that client the connect request will
fail with the “reconnect advice” to “retry”. This is the problem. It should
be “handshake”. This can be changed in BayeuxConnectio.connect() (line 304,
I  belive) replacing 
connectResponse.setAdvice(new BayeuxAdvice("retry", 0, false));

with
connectResponse.setAdvice(new BayeuxAdvice("handshake", 0, false));
  This won't solve all the problems since DojoX cometd implementation
doesn't handle the advice to re-handshake. So, I also modified DojoX cometd
witch I  http://n2.nabble.com/file/n3573366/cometd_uncompressed_changed.js
uploaded .

  Thanks,
    Luís M. Costa

-- 
View this message in context: http://n2.nabble.com/Bayex4Netty-Server-restart-leads-to-infinite-connection-requests-tp3573366p3573366.html
Sent from the Netty Developer Group mailing list archive at Nabble.com.



More information about the netty-dev mailing list