<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 1:38 PM, Anthony Molinaro <span dir="ltr"><<a href="mailto:anthonym@alumni.caltech.edu" target="_blank">anthonym@alumni.caltech.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Steve,<br>
<br>
It may not be directly caused by your patch, but that was the first<br>
patch that stuck out when I started looking through the readmes for the<br>
releases. I've not been able to untangle mochiweb enough to do a test<br>
without it, so attached is a test file which uses mochiweb.<br>
<br>
If you compile it, you should see this with R14B04<br>
<br>
Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]<br>
<br>
Eshell V5.8.5 (abort with ^G)<br>
1> mochi_test:start().<br>
{ok,<0.44.0>}<br>
2> mochi_test:test(10000).<br>
{ok,{{"HTTP/1.1",400,"Bad Request"},<br>
[{"date","Thu, 13 Dec 2012 18:36:06 GMT"},<br>
{"server","MochiWeb/1.0 (Any of you quaids got a smint?)"},<br>
{"content-length","0"}],<br>
[]}}<br>
3><br>
<br>
and this with R15B02<br>
<br>
Erlang R15B02 (erts-5.9.2) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false]<br>
<br>
Eshell V5.9.2 (abort with ^G)<br>
1> mochi_test:start().<br>
{ok,<0.44.0>}<br>
2> mochi_test:test(10000).<br>
{error,socket_closed_remotely}<br>
3><br>
<br>
I used Mochiweb 2.3.1 and compiled it and the test code with R14B04, then<br>
ran the test with the 2 different versions. Discovering the exact errors<br>
consisted of adding some debug output to mochiweb_http:headers/5 and<br>
mochiweb_http:request/2 in the _Other clauses.<br>
<br>
After talking with the mochiweb devs on the mochiweb group, I'll probably<br>
submit a patch there to deal with the tcp_error, but it would be interesting<br>
to know what caused the behavior change.<br>
<br>
Looking forward to any results you might get,</blockquote><div><br></div><div>Hi Anthony, based on your example, it looks like a follow-up commit that modified some of the changes introduced by my patch introduced the issue you're seeing: commit dc5f7190. You might want to report it over on erlang-bugs.</div>
<div><br></div><div>--steve </div></div></div>