]> Cypherpunks repositories - gostls13.git/commit
net: make {TCP,Unix}Listener implement syscall.Conn
authorLorenz Bauer <lmb@cloudflare.com>
Wed, 18 Oct 2017 10:15:04 +0000 (11:15 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 25 Oct 2017 20:12:14 +0000 (20:12 +0000)
commiteed308de31e32a42012fd916d70cfed19280bbe7
treeeb90c0f71135a22584611a7271dbb25883554381
parentff4ee8816226b6c84690a56fb3b16c9210e68431
net: make {TCP,Unix}Listener implement syscall.Conn

This change adds the syscall.Conn interface to Listener types, with the caveat that only RawConn.Control is supported. Custom socket options can now be set safely.

Updates #19435
Fixes #22065

Change-Id: I7e74780d00318dc54a923d1c628a18a36009acab
Reviewed-on: https://go-review.googlesource.com/71651
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/rawconn.go
src/net/rawconn_unix_test.go
src/net/rawconn_windows_test.go
src/net/tcpsock.go
src/net/unixsock.go