[英]akka-Http post request hangs on Expect: 100-continue
I am encountering an unexpected behaviour in akka-http POST request endpoint, which sends the payload of around 40kb. 我在akka-http POST请求端点中遇到意外行为,该端点发送约40kb的有效负载。 After 8-9 times
the request hangs with the response 8-9 times
,请求随响应一起挂起
> Host: localhost:9090
> User-Agent: curl/7.54.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 1726
> Expect: 100-continue
>
* Done waiting for 100-continue
On looking for solution I tried the request adding -H 'Expect:'
, upon which the request hangs with response 在寻找解决方案时,我尝试了添加-H 'Expect:'
的请求,该请求在响应中挂起
> POST /xstreams/v1/submitJob HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 10.xxx.xx.xx:9090
> Accept: */*
> Content-Type: application/json
> Content-Length: 42464
>
* upload completely sent off: 42464 out of 42464 bytes
I am not able to find the root cause, whether it be due to some backpressure created PS: The request is made at interval of 30 min and hangs after 8-9 times and works after the services is restarted 我无法找到根本原因,是否是由于某些背压造成的PS:该请求以30分钟的间隔发出,在8-9次后挂起,并在重新启动服务后起作用
Your application might run out of available threads. 您的应用程序可能用完了可用线程。 Have you tried to see what threads are doing when you get a Done waiting for 100-continue
? 您是否尝试查看Done waiting for 100-continue
时线程正在做什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.