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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -