tcp connectiontcp connectionread tcp ip_server.:port1->ip_client:port2: wsarecv: An existing connection was forcibly closed by the remote host.EOFconn.SetReadDeadline()
if err != nil {  
    log.Println("getting error from listener") 
    // I thought, listener can continue work another cases 
    if neterr, ok := err.(net.Error); ok && neterr.Timeout() || err == io.EOF { 
     log.Println("Closing connection...") 
     break // connection will be closed 
    } 
} 

任何人都知道这个错误?你知道如何捕捉这个错误,当这个错误发生?提前致谢 !

+1

不与Go但同一种错误:https://stackoverflow.com/questions/2582036/an-existing-connection-was-forcibly-closed-by-the-remote-host –