mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Make netmgr tcpdns send calls asynchronous
isc__nm_tcpdns_send() was not asynchronous and accessed socket internal fields in an unsafe manner, which could lead to a race condition and subsequent crash. Fix it by moving tcpdns processing to a proper netmgr thread.
This commit is contained in:
@@ -621,6 +621,9 @@ process_queue(isc__networker_t *worker, isc_queue_t *queue) {
|
||||
case netievent_tcpsend:
|
||||
isc__nm_async_tcpsend(worker, ievent);
|
||||
break;
|
||||
case netievent_tcpdnssend:
|
||||
isc__nm_async_tcpdnssend(worker, ievent);
|
||||
break;
|
||||
case netievent_tcpstop:
|
||||
isc__nm_async_tcpstop(worker, ievent);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user