I think that your problem is here: buffer := make([]byte, 6), conn.Read
reads up to len(bufer) before unblocking, and apparently you're trying
to decode an int32, which is 4 bytes long, so your Read call is waiting
for those 2 bytes from your java client to continue.

—wagner

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/20200311142230.71755059%40pampas.

Reply via email to