X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=5ed4c9b6f16bd4e9d04b8a7fa3c7b4f6cf52a973;hp=e712c0ef7bbf107e76e8a6ca33b862ff3c0bc65e;hb=b06636208651777c08e2456bf3b5953fc3c0f2c2;hpb=d7971954990c423d60a52030f5dfa78d32003486 diff --git a/src/tcpip.c b/src/tcpip.c index e712c0e..5ed4c9b 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -227,17 +227,13 @@ COMSTACK tcpip_type(int s, int flags, int protocol, void *vp) sp->altbuf = 0; sp->altsize = sp->altlen = 0; sp->towrite = sp->written = -1; - if (protocol == PROTO_WAIS) - sp->complete = completeWAIS; - else - sp->complete = cs_complete_auto; + sp->complete = cs_complete_auto; sp->connect_request_buf = 0; sp->connect_request_len = 0; sp->connect_response_buf = 0; sp->connect_response_len = 0; - p->timeout = COMSTACK_DEFAULT_TIMEOUT; TRC(fprintf(stderr, "Created new TCPIP comstack h=%p\n", p)); return p;