The net.Conn interface provides the SetTimeout methods and I am supposed to check the returned error with os.Timeout. However I see no way of calling os.Timeout on the returned os.Error.
(The os.Error I've got is read unix @: Resource temporarily unavailable
which seem to consists of two parts: description of the function which timed out and the strerror
description of the EAGAIN
. I've tried err == os.EAGAIN
and it doesn't work, probably because of the extra information in os.Error).