Situation :
We have an application where users can submit files to the system. We use WOFileUpload to stream the file directly to the disk. There is at least 500 files uploaded per day (up to 1000), counting for something between 100Mb and 150Mb of data.

Problem :
Every day, we get about 2 to 5 upload that fails with :
 Error writing to output stream: [EMAIL PROTECTED]
java.io.IOException: Connection reset by peer: Amount read didn't match content-length

And at that point, we are looking for tips on where/what to look to fix the problem.

Here is the Stack on one such problem :
java.lang.RuntimeException: Error writing to output stream:
[EMAIL PROTECTED]
java.io.IOException: Connection reset by peer: Amount read didn't match content-length at com.webobjects.appserver._private.WOFileUpload.takeValuesFromRequest(WOF ileUpload.java:271) at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromR equest(WODynamicGroup.java:81) at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(W ODynamicGroup.java:89) at com.webobjects.appserver._private.WOConditional.takeValuesFromRequest(WO Conditional.java:41) at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromR equest(WODynamicGroup.java:81)
...

Server configuration :
On this server, we run both apache 1.x and multiples wo applications (multiple application and multiple instances) : WO5.2.3 / Apache 1.x / MacOS-X 10.3.9.

My own impression :
We can reproduce the problem when 2 sessions (one Mac/FireFox, one PC/IE) tries to upload a file (less than 1 mb each). After a couple of successful tries (up to 3) we where able to generate the error. So this lead me to think about a thread/race condition problem either on the apache-wo adaptor or in the application implementation about file upload.

Thanks for any suggestions,

- jfv

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to