Re: [Simpleweb-Support] Simpleweb Shutting Down Connection Unexpecteadly During HTTP POST
Brought to you by:
niallg
From: <nik...@go...> - 2008-09-21 21:04:38
|
Hello Niall, Sunday, September 21, 2008, 10:08:11 PM, you wrote: > Ya, this looks like a bug. The issue is somewhat related to parsing > the upload but more related to how the upload is transferred over > TCP. Simple parses the upload in segments, each segment is taken > from what is currently in the server TCP window. I'd like to give this a shot and would like to try to find the bug, but I need some help... > When the terminal > boundary is in a small final packet What do you mean with "terminal boundary"? Do you mean the "boundary" token? If so... I am not sure if this is correct, since (in my case) the "boundary" token should be in the first packet always (since the header is very small). > then it fails to parse it > correctly. I am not going to include this in 4.0.3 but will ensure > its a priority for 4.0.4, which should not be too long. Okay, I guess I have to wait then. Thanks for acknowledging the bug. I think I can sleep better now :) > The bug is in the class > org.simpleframework.http.core.ContentConsumer and how it interacts > with the org.simpleframework.http.core.TransportCursor which feeds > the consumer the tokens it uses to parse the upload. Its a little > complex, but well documented, if you can spot the bug before I get a > chance to work on it then that would be greatly appreciated. I'll try my best, but when I stepped through the code I did not understand a lot. :-/ -- Best regards, nik.thirtynine mailto:nik.thirtynine |