Modify select call to match example and Xerces trunk.
authorScott Cantor <cantor.2@osu.edu>
Tue, 4 Mar 2008 00:49:11 +0000 (00:49 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 4 Mar 2008 00:49:11 +0000 (00:49 +0000)
xmltooling/util/CurlURLInputStream.cpp

index 61652b5..1923a50 100644 (file)
@@ -254,7 +254,7 @@ CurlURLInputStream::readBytes(XMLByte* const          toFill
                        timeval tv;
                        tv.tv_sec  = 2;
                        tv.tv_usec = 0;
-                       (void) select(fdcnt, &readSet, &writeSet, &exceptSet, &tv);
+                       (void) select(fdcnt+1, &readSet, &writeSet, &exceptSet, &tv);
                }
        }