mirror of
https://github.com/soypat/lneto.git
synced 2026-09-11 09:09:30 +00:00
Add tcp.Listener (#15)
* begin reviewing TCP listener * begin adding listener tests * adding TestExchange implementation * split out legacy and Step tests * move listener to tcp package * fix up tcp tests taking very long * add xnet.TCPPool and work on TCPPool semantics * xnet: TCPPool only accepts established connections * xnet: getting to bottom of panic in xnet.Listener * xnet: improve listener tests * fix several data races in testing fixtures * fix more synchronization things in listener test * finalize tcplistener test
This commit is contained in:
+1
-1
@@ -249,7 +249,7 @@ func (conn *Conn) Read(b []byte) (int, error) {
|
||||
}
|
||||
conn.trace("TCPConn.Read:start")
|
||||
backoff := internal.NewBackoff(internal.BackoffTCPConn)
|
||||
for conn.h.BufferedInput() == 0 && conn.State() == StateEstablished {
|
||||
for conn.BufferedInput() == 0 && conn.State() == StateEstablished {
|
||||
if err := conn.checkPipe(connid, &conn.rdead); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user