projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Beginnings for RPN to CQL transform.
[yaz-moved-to-github.git]
/
src
/
tcpip.c
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
a255eaa
..
b992319
100644
(file)
--- a/
src/tcpip.c
+++ b/
src/tcpip.c
@@
-1,8
+1,6
@@
-/*
- * Copyright (C) 1995-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: tcpip.c,v 1.39 2008-01-16 13:01:45 adam Exp $
*/
/**
* \file tcpip.c
*/
/**
* \file tcpip.c
@@
-720,7
+718,15
@@
int tcpip_listen(COMSTACK h, char *raddr, int *addrlen,
)
h->cerrno = CSNODATA;
else
)
h->cerrno = CSNODATA;
else
+ {
+#ifdef WIN32
+ shutdown(h->iofile, SD_RECEIVE);
+#else
+ shutdown(h->iofile, SHUT_RD);
+#endif
+ listen(h->iofile, SOMAXCONN);
h->cerrno = CSYSERR;
h->cerrno = CSYSERR;
+ }
return -1;
}
if (addrlen && (size_t) (*addrlen) >= sizeof(struct sockaddr_in))
return -1;
}
if (addrlen && (size_t) (*addrlen) >= sizeof(struct sockaddr_in))