Bug: Infinite recursion in netListenerAdaptor.Accept
raff opened this issue · comments
Raffaele Sena commented
This code in proto/session.go:
func (a *netListenerAdaptor) Accept() (net.Conn, error) {
str, err := a.Accept()
return net.Conn(str), err
}
should be:
func (a *netListenerAdaptor) Accept() (net.Conn, error) {
str, err := a.Session.Accept()
return net.Conn(str), err
}
or you end up calling yourself over and over.
Alan Shreve commented
Fixed in 7c45696 with a verifying test. Thanks for catching this!