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.

16 lines
396 B

  1. //go:build go1.10
  2. // +build go1.10
  3. package conn
  4. // Go1.10 has a proper net.Conn implementation that
  5. // has the SetDeadline method implemented as per
  6. // https://github.com/golang/go/commit/e2dd8ca946be884bb877e074a21727f1a685a706
  7. // lest we run into problems like
  8. // https://github.com/tendermint/tendermint/issues/851
  9. import "net"
  10. func NetPipe() (net.Conn, net.Conn) {
  11. return net.Pipe()
  12. }