How to detect diconnected Duplex Polling clients
问题 I have followed Tomek Janczuk's Pub/sub sample using HTTP polling duplex WCF channel but I've noticed that when a client disconnects by closing the browser the service does not notice on the next callback. I would have expected an exception or something to say that the endpoint was not there any longer. How can you know when a client is gone, so as to stop publishing to that client? 回答1: It seems there's one unsatisfactory, albeit simple solution: If the client callback times out, don't call