I am quite stumped by this error that I am getting intermittently on my Go server running on Ubuntu.
The following code logs the error:
conn, err := listener.Accept()
if err != nil {
log.Error(err)
}
Output:
accept tcp [::]:42796: i/o timeout
I have never seen an i/o timeout on accept before and I don't know what it could mean. Is this being caused by a resource constraint on my server or is it because the client is not sending data?