I'm working with net.Conn (tcp4), and I get a lot of "resource
temporarily unavailable" using io.ReadFull, what can I do to avoid
this? Or what should I do when I receive this error?
I would like to set the socket to blocking mode, I think this would
solve the issue.
Thanks, Roger.
You're not supposed to get that error.
Read is supposed to take care of the
blocking for you.
Can you post a program that demonstrates
the problem, and also say which operating
system and architecture you're using?
Thanks.
Russ
http://github.com/royger/wgo (check the Wire.go file)
I will try to make a simpler example tomorrow.
Thanks, Roger.
2010/9/3 Russ Cox <r...@golang.org>:
2010/9/3 Roger Pau Monné <roy...@gmail.com>:
Sorry that I made you loose your time, I've found the problem, I was
setting SetTimeout wrong, so it always returned because the timeout
was very short. Maybe the error could be clearer, something like a
"read timeout" could be much more useful than this.
Thanks anyway, and sorry again.
Sounds like a good idea. I've added
http://code.google.com/p/go/issues/detail?id=1078
Russ