Make socket exceptions more specific to match Python semantics

This commit is contained in:
Joseph Henry
2021-05-19 22:14:15 -07:00
parent 4e0813d167
commit 81d03c3692
3 changed files with 25 additions and 1 deletions

View File

@@ -158,6 +158,7 @@ ZTS_ENOBUFS = _libzt.ZTS_ENOBUFS
ZTS_EISCONN = _libzt.ZTS_EISCONN
ZTS_ENOTCONN = _libzt.ZTS_ENOTCONN
ZTS_ETIMEDOUT = _libzt.ZTS_ETIMEDOUT
ZTS_ECONNREFUSED = _libzt.ZTS_ECONNREFUSED
ZTS_EHOSTUNREACH = _libzt.ZTS_EHOSTUNREACH
ZTS_EALREADY = _libzt.ZTS_EALREADY
ZTS_EINPROGRESS = _libzt.ZTS_EINPROGRESS