Closed snej closed 4 years ago
A failure in connector::connect() or acceptor::open now leaves the last_error property at 0 instead of an actual error code.
connector::connect()
acceptor::open
last_error
This is a side effect of the fix of #23. socket::close now overwrites last_error with the status of the ::close call, which is almost always 0.
socket::close
::close
Thanks. The unit tests caught a couple side effects. I figured there would be more.
I think we need more unit tests.
Fixed by #28. I hope.
A failure in
connector::connect()
oracceptor::open
now leaves thelast_error
property at 0 instead of an actual error code.This is a side effect of the fix of #23.
socket::close
now overwriteslast_error
with the status of the::close
call, which is almost always 0.