问题
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