--
Premature end of main goroutine?
Who waits for the handler send the data?
My suggestion would be to take the code that is in the loop after the connection has been established and checked for errors, and put it into it's own function that takes the connection as a parameter.For example:func handleRequest(c net.Conn ) {// do stuffc.Close()}Once that's working to your liking, then simply change the call to have the go keyword in front of it. http://play.golang.org/p/DWePWiMrcZ
--