[erlang-questions] confusing returns from httpc:request/4

Anthony Molinaro anthonym@REDACTED
Thu Oct 7 20:00:57 CEST 2010

Hi Dan,

   A quick websearch turned up


which seems to suggest you might be at the maximum allowable open file
descriptors and need to update it.

I've had less than stellar results with httpc (see old posts on this group

I would highly recommend ibrowse though, it's worked really well.


On Thu, Oct 07, 2010 at 11:51:48AM -0400, Dan Kelley wrote:
> Hi,
> I've got a simple router that's talking to a remote HTTP load balancer via
> httpc:request/4.  For every request that I get into the router, I spawn a
> new process then attempt to connect to the HTTP LB.
> That works well most of the time, but occasionally I get
> {error, socket_closed_remotely} instead of results.  I had assumed that
> these corresponded to the HTTP LB prematurely closing the connection, but
> when I look at the logs for that process, it always thinks that it's
> returning clean responses (HTTP 200 code, appropriately-formed bodies, etc).
> Anyone seen anything like this before?  What else might I do to debug this?
> Thanks,
> Dan

Anthony Molinaro                           <anthonym@REDACTED>

More information about the erlang-questions mailing list