Forum Discussion

Fuzz88's avatar
12 years ago

Connection Reset with request larger than 512 bytes

We have a mock web-service built in Python using the lib HTTPServer and when in SoapUI 4.6.4 sending an request with 513 bytes or larger I get a connection reset. The server starts sending back the results but the connection is being reset in the middle. With gzip Request Compression enabled it all works fine.

SoapUI Log
Mon Mar 24 08:28:05 CET 2014:ERROR:Exception in request: java.net.SocketException: Connection reset
Mon Mar 24 08:28:05 CET 2014:ERROR:An error occurred [Connection reset], see error log for details
Mon Mar 24 08:28:05 CET 2014:INFO:Error getting response for [BasicHttpBinding_IMaintenanceTechPackageService_v2.GetMaintenanceTechPackageDetails:Request 1]; java.net.SocketException: Connection reset


Http log:

Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "POST /ws/460/2 HTTP/1.1[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "Connection: close[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "SOAPAction: "http://xmlns.company.com/maintenancetechpackage/contract/techpackageservice/v2/IMaintenanceTechPackageService_v2/GetMaintenanceTechPackageDetails"[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "Content-Length: 33345[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "Host: machine[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "12345678901234567890123456789012345678901234567890123456789012345678901234567890[\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "12345678901234567890123456789012345678901234567890123456789012345678901234567890[\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "12345678901234567890123456789012345678901234567890123456789012345678901234567890[\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "12345678901234567890123456789012345678901234567890123456789012345678901234567890[\n]"
.
. some more data here..
.
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "12345678901234567890123456789012345678901234567890123456789012345678901234567890[\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:>> "12345678901234567890123450[\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:<< "HTTP/1.0 200 OK[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:<< "Content-Type: text/xml; charset=utf-8[\r][\n]"
Mon Mar 24 08:28:05 CET 2014:DEBUG:<< "Content-Length: 21625[\r][\n]"


I have tested sending the exact same request with curl and 2 other tools with the exact same configuration and it works ok so I have verified the functionality of the server.


Cheers,
Stefan
No RepliesBe the first to reply