Descriptionsyscall: workaround accept() bug on Darwin
Darwin kernels have a bug in accept() where error result from
an internal call is not checked and socket is accepted instead
of ECONNABORTED error. However, such sockets have no sockaddr,
which results in EAFNOSUPPORT error from anyToSockaddr, making
Go http servers running on Mac OS X easily susceptible to
denial of service from simple port scans with nmap.
Fixes issue 3849.
Patch Set 1 #Patch Set 2 : diff -r c87a4b5ad6d7 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r c87a4b5ad6d7 https://go.googlecode.com/hg/ #
Total comments: 1
MessagesTotal messages: 5
|