You didn't buffer writes.
libevent does a good job at buffer managment. Go's net.Conn and os.File are 
unbuffered, ie they are almost "raw" file descriptors. You should use 
bufio.Writer and bufio.Reader, or make buffering by hands. (Just don't forget 
to flush bufio.Writer if response channel is empty)

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to