LearnBoost/socket.io — Issue #648: Takes very long for android devices to receive a 'disconnect' event after terminating the server process
Author: FrzMe
Created: 2011-11-18 02:12:23+00:00
State: open

When I connect to a socket.io based application from android webkit browsers and the server process is then terminated it takes about 5 minutes until the disconnect event is emitted. The event is emitted almost instantly on desktop browsers (firefox and chrome were tested), the transport used is always 'xhr-polling' (forced the for desktop browsers)

I'm using this code to connect:
```
io.connect(document.domain, {
'max reconnection attempts' : Infinity,
'reconnection limit' : 60000,
transports: ['xhr-polling']
});
```

Problem happens with 0.8.7 but also tried older 0.8.x relases and it also happens. I remember that this worked better/fine in a 0.6.x version but I'm unsure of the exact version number.