A web server opens a temporary port while sending the response to the clients. In the case of comet programming(streaming), if the response from web server is never going to end, does that mean the web server will always keep the temporary port open for infinite period ?
A:
Depends on the COMET technique:
Client sends request to Server - Server sends data (when it has meaningful data to send ;-) - Client receives data - Client closes.
Client sends request to Server - Server sends data in "chunk" (chunked transfer) keeping the connection open for as long as it can/instructed to.
jldupont
2010-01-12 03:40:45
A:
It will be open until the server or the client closes the connection.
Filipe Giusti
2010-01-12 04:08:36