You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 rivejä
258 B

  1. //+build !darwin !go1.9
  2. package nosigpipe
  3. import "net"
  4. // IgnoreSIGPIPE prevents SIGPIPE from being raised on TCP sockets when remote hangs up
  5. // See: https://github.com/golang/go/issues/17393. Do nothing for non Darwin
  6. func IgnoreSIGPIPE(c net.Conn) {
  7. }