java web server sending continuous response to browser but not closing the socket when client is closed -
i making server
side program using socket
programming in java
, handle multiple request
client. here client browser
not client program. server
accept request browser
, process request using thread
. in response web server sending continuous data
browser streaming
getting problem when user close browser
or change tab or minimize browser
.then server not able detect browser states on socket
.
why data continuously sending server
program socket
when browser minimize. how can detect browser states on java socket means tab,close or minimize.
i want know how apache tomcat
detect whether browser open or close or tab change in browser.
Comments
Post a Comment