2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 07:35:26 +00:00

only set permanent failure for tcp streams on sending

This commit is contained in:
Michael Graff
2000-05-22 16:56:12 +00:00
parent c512030111
commit a330a4b008

View File

@@ -867,6 +867,7 @@ doio_send(isc_socket_t *sock, isc_socketevent_t *dev) {
} }
#define ALWAYS_HARD(_system, _isc) \ #define ALWAYS_HARD(_system, _isc) \
if (errno == _system) { \ if (errno == _system) { \
if (sock->connected && sock->type == isc_sockettype_tcp) \
sock->send_result = _isc; \ sock->send_result = _isc; \
send_senddone_event(sock, &dev, _isc); \ send_senddone_event(sock, &dev, _isc); \
return (DOIO_HARD); \ return (DOIO_HARD); \