And in server side, it read and wait 1 second at most.
I think the server side have already closed the socket.
But, why client side still write to socket without any error code returned?
2013/05/07 15:05:05.554646 srv.go:74: cli sleep 3 seconds
2013/05/07 15:05:06.555119 srv.go:58: Err: srv read read tcp
127.0.0.1:18888: i/o timeout
2013/05/07 15:05:06.555199 srv.go:50: srv close conn
2013/05/07 15:05:06.557232 srv.go:41: srv close listener
2013/05/07 15:05:08.555172 srv.go:76: cli will write
2013/05/07 15:05:08.555407 srv.go:82: cli wrote 9 bytes
2013/05/07 15:05:08.555428 srv.go:71: cli close sock
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.