|
Re: Need help debugging mochiweb/Safari HTTP problems: msg#00129db.couchdb.devel
On 25.07.2008, at 03:18, Damien Katz wrote: Looks like I found a fix for the bug, though I'm not 100% sure what the actual bug is. The fix was to change mochiweb to send the HTTP chunk in a single gen_tcp:send/2 call. Previously it sent the length in one call, then the data followed by data in another call. So this is a patch to the mochiweb source, right? Like this: Index: src/mochiweb/mochiweb_response.erl =================================================================== --- src/mochiweb/mochiweb_response.erl (revision 678916) +++ src/mochiweb/mochiweb_response.erl (working copy) @@ -50,8 +50,7 @@ case Request:get(version) of Version when Version >= {1, 1} -> Length = iolist_size(Data), - send(io_lib:format("~.16b\r\n", [Length])), - send([Data, <<"\r\n">>]); + send([io_lib:format("~.16b\r\n", [Length]), Data, <<"\r \n">>]); _ -> send(Data) end. ? Cheers, -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [PATCH] Expose UUID generation through the REST API: 00129, Kevin Jackson |
|---|---|
| Next by Date: | Re: Need help debugging mochiweb/Safari HTTP problems: 00129, Christopher Lenz |
| Previous by Thread: | Re: Need help debugging mochiweb/Safari HTTP problemsi: 00129, Damien Katz |
| Next by Thread: | Re: Need help debugging mochiweb/Safari HTTP problems: 00129, Christopher Lenz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |