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:
Mark Andrews
2000-06-20 23:52:54 +00:00
parent c05ebd0da7
commit 3c671ac666
5 changed files with 37 additions and 1 deletions

View File

@@ -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,