[erlang-questions] Long polling
Tue Jul 17 16:57:15 CEST 2012
I am building a softphone which needs to register with the server to say "I
am available" for incoming calls.
So it makes an HTTP POST request to the server and that notifies the
softphone gen_srv that is is available.
At that point I leave the TCP request hanging on a receive waiting for a
notification that the socket has been torn down (and which point it
unregisters the phone).
My question is: how long can I leave the request up? Infinity? or do I need
to have a timeout/reregister cycle setup?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions