|
Boost Users : |
Subject: Re: [Boost-users] asio error codes
From: Igor R (boost.lists_at_[hidden])
Date: 2011-10-05 02:21:51
> Well, my main concern is for reads and writes over tcp. Determining if my
> connection has been dropped or is unrecoverable, or if I should retry the read or write.
>
> I see lots of 'no so self explanatory' error codes in the list of possibles.
> Such as,
> "Operation already in progress"
> "access_denied"
> "operation_aborted"
>
> knowing when and why these occur dictates how I would handle them and whether I'd give up or retry.
I don't think you can recover from unexpected errors coming from tcp,
by just "retrying read or write". The only thing you can do in any
case is to try and re-establish connection.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net