On Thu, May 5, 2011 at 5:50 PM, Andrew <
buricchio@...> wrote:
> Hi!
> Have anybody used yaws revproxy for Javascript XMPP client over
> HTTP-BOSH-XMPP (like JWChat, JsJAC)?
> In idle state of connected client, I see a leak of socket descriptors.
> Those sockets are hanging in CLOSE_WAIT state, and soon descriptor are
> exhausted causing yaws crash and session break.
>
> Some info:
> 1)revproxy is necessary, because Javascript client cannot send AJAX
> request directly to host(port) of BOSH server, which is differ from
> web-page's host.
> 2) Javascript client sends BOSH requests and waits the response. At idle
> state, response is absent and client repeats request after client timeout.
> 3) yaws keepalive_timeout is a bit longer then client timeout to save
> BOSH session.
>
> Have anybody resolved this issue with CLOSE_WAIT sockets?
> Or, could it be a problem with OS settings?
> Or, could it be a bug in revproxy implementation?
> Any thoughts?
The rev_proxy code is experimental. I think some have used it
successfully but YMMV.
Klacke and I recently chatted about this code. He has no time to work
on it at present, and I don't have any use cases for it myself that
would help me improve it. However, if people are willing to submit
test cases for it, especially cases that should work but don't, I'd
definitely fix any problems those cases cover.
Andrew, any chance you could whittle your code down to a minimal test
case that shows the problem?
--steve
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list