Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Error "File exists" at connect
From: Igor R (boost.lists_at_[hidden])
Date: 2012-01-17 13:34:08

>>> I am running a server and client using boost::asio. There are 10 clients
>>> sending requests simultaneously to the server. Sometimes one of the
>>> clients
>>> returns the error "File exist" when ip::tcp::socket::connect() is called.
>>>  Do you have any idea what possibly could cause this error?
>> What's the error code?
> the error value is 17 and the category is system. By the way, the system is
> Linux 32 bit and Boost version is 1.40

It's EEXIST error, and it's weird you get it for tcp socket.
The only idea I can suggest is to ensure you don't have some
race-condition with your sockets during there lifetime (note that a
socket object is not thread-safe).

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at