Operation already in progress

Some functions, such as connect(2) initiate a potentially long procedure, and return immediately with EINPROGRESS to let you know that this has been set in motion, but you might have to call back later to finish it off. If you try and do something on this socket before the operation has completed, you will get a EALREADY error. This is usually a sign of a programming bug.