Angular POST Request “stalled” by Chrome

谁说胖子不能爱 提交于 2020-01-25 09:20:08

问题


One of the post request in our angular application is stalled for more than 2 mins in Chrome. The same Content when re-posted it's posted quickly (less than 6 seconds).

The above happens when some ajax request was made earlier on the page followed by the ajax post request. if the same post request was made separately then it works fine.

This doesn't happen when the content size is less . Can someone help to resolve the issue?

I see error(look at attached screenshot) while transferring the data first time and then it halt to 2 mins and then re-transfer was successful. I am not sure on the reason and possible solution.

Server : Asp.Net Web Api2 on IIS 8.5

Chrome Version : 75.x

UPLOAD_DATA_STREAM_INIT  [dt=0]
                           --> is_chunked = false
                           --> net_error = 0 (?)
                           --> total_size = 818294

When i close the idle sockets on chrome://net-internals/#sockets then it worked. So the problem is when re using the existing socket connection

Below are the screen shot of Chrome event log

来源:https://stackoverflow.com/questions/58576289/angular-post-request-stalled-by-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!