java - Delay in Browser Passing on Request to Server -


my application makes lots of http requests server. max number of connections opened client 2. more requests queued on client side until 1 of them responded.

problem: 99 % of requests go fine. in exceptional cases, of requests spend time in being delivered browser. hence not received server in same order sent client. these requests, checked developer tools , found high waiting time(ttfb)(460ms in case while other have 30-40 ms).

not sure if helps server java http server. issue prominent in ie 9/10/11. lesser in chrome out of experience.

finally figured out issue. might helpful else too. in headers had set connection- keep-alive responses timeout 5 seconds. resulted in connections opened browser closed. increased value larger value (30 secs) since application uses long polling of timeout of 20 seconds. hence same connection being reused now. dont see issue more.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -