"I have a phone and I somehow don't manage to turn it on."
Could you please show us what you're actually doing, that is, your code?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
I have a server that gets connections only from mobile devices (not
phones,
but they use 3G phone networks), and I get the same behavior. The
devices
sometimes disconnect but the proxy on the 3G network never triggers
that
to my side and I don't have any way of knowing it.
I did this test:
- Connect a device to my server using 3G;
- Disconnect the device (remove battery);
I never received an event and I set a setTimeout callback to trigger
(after
the device is off) to send data to the socket and check if any errors
ocurred.
No errors.
I don't think this is a memory leak. I don't get this behaviour from
anything
else other from devices from 3G network. Really weird, I just schedule
service
restart every week.
---
Diogo R.
you should listen for timeout and close the connection if you get it:
http://nodejs.org/docs/v0.6.4/api/net.html#event_timeout_
and error will tell you about an error, after which you *should*
receive a close:
http://nodejs.org/docs/v0.6.4/api/net.html#event_error_