264. [func] Dispatch can not take TCP sockets in connecting
state. Set DNS_DISPATCHATTR_CONNECTED when calling
dns_dispatch_createtcp() for connected TCP sockets
or call dns_dispatch_starttcp() when the socket is
connected.
This commit is contained in:
@@ -111,6 +111,7 @@ my_accept(isc_task_t *task, isc_event_t *ev_in) {
|
||||
attrs = 0;
|
||||
attrs |= DNS_DISPATCHATTR_IPV4;
|
||||
attrs |= DNS_DISPATCHATTR_TCP;
|
||||
attrs |= DNS_DISPATCHATTR_CONNECTED;
|
||||
disp = NULL;
|
||||
RUNTIME_CHECK(dns_dispatch_createtcp(dispatchmgr, ev->newsocket,
|
||||
taskmgr, 4096, 64, 1024,
|
||||
|
||||
Reference in New Issue
Block a user