Mantis - Resin
Viewing Issue Advanced Details
5120 minor always 06-14-12 10:37 06-20-12 15:32
ferg  
ferg  
normal  
closed 4.0.28  
fixed  
none    
none 4.0.29  
0005120: timeout with multipart forms
(rep by Mattias Jiderhamn)


When running on 64-bit Linux, compiled with --enable-64bit and
--enable-ssl, and posting a multipart/form-data form without any file
parts included, we're getting timeouts. See stacktrace below.

We do not have any issues with
- non-multipart forms
- multipart forms containing file parts
- multipart forms without file parts, when running on Windows

Have there been any additional configuration parameters added, that
might be worth trying out?
Any other ideas?
Thanks in advance.

[2012-06-14 17:13:21.414] com.caucho.vfs.SocketTimeoutException: client
timeout
                                 at
com.caucho.vfs.JniStream.exception(JniStream.java:231)
                                 at
com.caucho.vfs.JniStream.read(JniStream.java:83)
                                 at
com.caucho.vfs.ReadStream.read(ReadStream.java:472)
                                 at
com.caucho.server.http.ContentLengthStream.read(ContentLengthStream.java:75)
                                 at
com.caucho.vfs.ReadStream.readBuffer(ReadStream.java:1239)
                                 at
com.caucho.vfs.ReadStream.read(ReadStream.java:365)
                                 at
com.caucho.vfs.MultipartStream.read(MultipartStream.java:420)
                                 at
com.caucho.vfs.MultipartStream.read(MultipartStream.java:352)
                                 at
com.caucho.vfs.ReadStream.readBuffer(ReadStream.java:1239)
                                 at
com.caucho.vfs.ReadStream.readChar(ReadStream.java:571)
                                 at
com.caucho.server.http.MultipartFormParser.parsePostData(MultipartFormParser.java:177)
                                 at
com.caucho.server.http.AbstractCauchoRequest.parsePostQueryImpl(AbstractCauchoRequest.java:441)
                                 at
com.caucho.server.http.AbstractCauchoRequest.parseQueryImpl(AbstractCauchoRequest.java:275)
                                 at
com.caucho.server.http.AbstractCauchoRequest.getParts(AbstractCauchoRequest.java:232)
                                 at
se.exder.servlet.ServletUtils.parseMultipart(ServletUtils.java:303)
                                 ...
 multipart.jsp [^] (419 bytes) 06-15-12 02:38
 MultipartServlet.java [^] (1,055 bytes) 06-15-12 02:39

Notes
(0005897)
ferg   
06-20-12 15:32   
Buffering/timing issue with OpenSSL.