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

preStart hook: a message to the actor itself

scala akka

Let's say I override the preStart hook and send a message to self:

How to auth into BigQuery on Google Compute Engine?

python bash curl google-bigquery google-compute-engine

What's the easiest way to authenticate into Google BigQuery when on a Google Compute Engine instance?