简体   繁体   English

gsoap错误:HTTP内部服务器错误:文件结尾或无输入:操作中断或超时(5 s接收延迟)

[英]gsoap error: HTTP internal server error: End of file or no input: Operation interrupted or timed out (5 s recv delay)

I have implemented a webservice using gsoap c++, problem is i am getting a random 500 internal error with fault code as "End of file or no input: Operation interrupted or timed out". 我已经使用gsoap c ++实现了一个Web服务,问题是我收到一个随机500内部错误,错误代码为“文件末尾或无输入:操作中断或超时”。 with this i have verified the total time of request. 与此,我已经验证了请求的总时间。 All is validated within a matter of milli seconds. 只需几毫秒即可验证所有内容。 also, i verified one successful response with the problmetic one, all the xml values are identical. 另外,我用一个有问题的答案验证了一个成功的答案,所有xml值都是相同的。 can any one suggest where i might be doing wrong? 谁能建议我可能做错了什么?

following is chunk debug logs from SENT.log created by GSOAP server 以下是由GSOAP服务器创建的SENT.log中的大块调试日志

<ResponseCode>00</ResponseCode><pDateTime>12055229</pDateTime><R1>null</R1><R2>null</R2><R3>null</R3><R4>null</R4> HTTP/1.1 500 Internal Server Error Server: gSOAP/2.8 Content-Type: text/xml; <ResponseCode> 00 </ ResponseCode> <pDateTime> 12055229 </ pDateTime> <R1>空</ R1> <R2>空</ R2> <R3>空</ R3> <R4>空</ R4> HTTP / 1.1 500 Internal Server Error服务器:gSOAP / 2.8内容类型:text / xml; charset=utf-8 Content-Length: 456 Connection: close charset = utf-8内容长度:456连接:关闭

SOAP-ENV:ClientEnd of file or no input: Operation interrupted or timed out (5 s recv delay)HTTP/1.1 500 Internal Server Error Server: gSOAP/2.8 Content-Type: text/xml; SOAP-ENV:ClientEnd文件或无输入:操作中断或超时(5 s recv延迟)HTTP / 1.1 500 Internal Server Error Server:gSOAP / 2.8 Content-Type:text / xml; charset=utf-8 Content-Length: 456 Connection: close" charset = utf-8内容长度:456连接:关闭“

Your timeout setting is perhaps too low (only 5 seconds), which means that the connection times out if no data was received within 5 seconds. 您的超时设置可能太低(仅5秒),这意味着如果5秒钟内未收到任何数据,则连接超时。 Set soap->recv_timeout = 30 which increases the data receive timeout to 30 seconds. 设置soap->recv_timeout = 30可以将数据接收超时增加到30秒。 It depends on your application what timeout settings are acceptable, but 5 seconds is definitely tight. 可以接受什么超时设置取决于您的应用程序,但是5秒钟肯定很紧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM