I think the problem is that the Python code is using a standard socket, and the Go code is using the rpc package. Try using net.Dial instead of rpc.DialHTTP.
A socket is just a socket. An rpc connection probably tries to do a bit more upon connection but isn't getting what it expects from the vanilla socket on the other side. https://golang.org/pkg/net/#Dial Dial returns a net.Conn, which has Read and Write methods which appear to be analogous to the send and receive methods used in the Python version. -- 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.