views:

5

answers:

0

Hello, I'm recieving an error ECONNABORTED, and i really can't figure out, what is the cause of it. The IBM guide suggests that it is because of a timeout, but that doesn't ring the bell for me. I don't know where to start so here are few questions.

a) accept() is the only thing needed to establish a connection - i mean no other functions should be called to confirm it?

b) may ECONNABORTED be caused by trying to send something to a connection that does not exist anymore? eg someone connected and then disconnected, and after he did, i try sending him something.

c) hence another question, how to properly deal with disconnection? i just use close function, is that right?

d) can this error occur because i try to send something to multiple connections from one thread?