[erlang-questions] inets/httpc bad match issue for 2 post requests

Shawn Debnath shawn@REDACTED
Thu Jan 15 20:49:48 CET 2015


Hi there,

Wondering if anyone can shed some light on this issue I am seeing.

I am trying to understand what may be causing **error:{badmatch,{error,socket_closed_remotely}} when using the same inets process to do 2 POST/PUT requests. The same code works just fine when issuing the same rest API calls to two separate inets processes or when issuing 2 GET requests to the same inets process.

Using webmachine on the server side which is not reporting any errors, and looking at the WMTRACEs, it correctly returns HTTP 401 error, which is expected.

Test source and output can be found at: http://pastebin.com/9DFzxLps

Thanks,
Shawn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150115/dd2a8d82/attachment.htm>


More information about the erlang-questions mailing list