cleanup in SIGPIPE

I have a pool of socket connection that share in multiple threads, a dead connection should be removed from pool, the problem is I don't know which is dead from SIGPIPE sighandler, Any advice in this situation?


One way to deal with this is to ignore SIGPIPE. This means that your writing operation (write, sendmsg, whatever) will return with an error, and as long as you pay attention to the error returns, you'll know which file descriptor fails - because everything is synchronous.

Need Your Help

Call web service from PHP

php web-services soap web

I've made ASP.NET web service, which contains one initial method called HelloWorld. I want to access to mentioned method using php and following code:

How to programmatically check WCF Http/Non-Http Activation components?

.net windows wcf wix

I need to detect if WCF Http/Non-Http Activation Components is installed during the installation of my product. How can I do so?