* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: socket.c,v 1.5.2.13.2.24.4.6.4.2 2008/09/04 16:42:46 each Exp $ */
+/* $Id: socket.c,v 1.5.2.13.2.24.4.6.4.3 2008/09/10 22:49:47 explorer Exp $ */
/* This code uses functions which are only available on Server 2003 and
* higher, and Windows XP and higher.
* We do check for a recv() of 0 bytes on a TCP stream. This means the remote end
* has closed.
*/
- if (nbytes == 0) {
+ if (nbytes == 0 && sock->type == isc_sockettype_tcp) {
send_recvdone_abort(sock, ISC_R_EOF);
maybe_free_socket(&sock, __LINE__);
return;