From: Zoran V. <vas...@us...> - 2006-01-10 12:43:43
|
Update of /cvsroot/naviserver/naviserver/nsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32658/nsd Modified Files: driver.c Log Message: Added some clarifying comments Index: driver.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsd/driver.c,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** driver.c 7 Jan 2006 22:26:31 -0000 1.27 --- driver.c 10 Jan 2006 12:43:35 -0000 1.28 *************** *** 895,898 **** --- 895,908 ---- sockPtr = nextPtr; } + + /* + * Hint: NsQueueConn may fail to queue a certain + * socket to the designated connection queue. + * In such case, ALL ready sockets will be put on + * the waiting list until the next interation, + * regardless of which connection queue they are + * to be queued. + */ + while (sockPtr != NULL) { nextPtr = sockPtr->nextPtr; *************** *** 934,938 **** * Queue the socket immediately if request is provided */ ! n = (*sockPtr->drvPtr->proc)(DriverAccept, (Ns_Sock*)sockPtr, 0, 0); if (n == NS_OK && sockPtr->reqPtr) { if (!SetServer(sockPtr)) { --- 944,949 ---- * Queue the socket immediately if request is provided */ ! n = (*sockPtr->drvPtr->proc)(DriverAccept, ! (Ns_Sock*)sockPtr, 0, 0); if (n == NS_OK && sockPtr->reqPtr) { if (!SetServer(sockPtr)) { |