lantunes / fixd

An HTTP Server Fixture for Testing HTTP Clients and mocking web services, and a Java Micro Web Framework
http://bigtesting.org/fixd
Apache License 2.0
41 stars 6 forks source link

Subscriber thread keeps alive if subscribing client disconnects #21

Closed lantunes closed 10 years ago

lantunes commented 10 years ago

A new asynchronous task is started when a client makes a suspending request, or subscribes. That task (thread) sits waiting on its subscriber broadcast queue. But what if the client disconnects, and there is no timeout? Does the subscriber thread keep alive, waiting on the broadcast queue? What if a broadcast comes in? What state is the response in if the client has disconnected?