[erlang-questions] Long polling
Gordon Guthrie
gordon@REDACTED
Tue Jul 17 16:57:15 CEST 2012
Folks
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?
Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120717/fbc632a6/attachment.htm>
More information about the erlang-questions
mailing list