Hi,

I've installed 2.0.99-RC2 on a FreeBSD 4.6 and had
troubles with https (openssl 0.9.6e). Every https
request lead to a timeout response. It seems the
select() in readHTTPheader() in http.c works not
this way with SSL. So I changed the code, so that
this select is used only for http requests. And it works
fine now.


Regards,
Oliver


--- work/RC2/ntop/http.c        Mon Jun  3 08:39:37 2002
+++ http.c      Sun Oct  6 20:33:02 2002
@@ -198,7 +198,8 @@

     /* select returns immediately */
     wait_time.tv_sec = 10; wait_time.tv_usec = 0;
-    if(select(myGlobals.newSock+1, &mask, 0, 0, &wait_time) == 0) {
+    if(myGlobals.newSock > 0 &&
+        (select(myGlobals.newSock+1, &mask, 0, 0, &wait_time) == 0)) {
       errorCode = HTTP_REQUEST_TIMEOUT; /* Timeout */
 #ifdef DEBUG
       traceEvent(TRACE_INFO, "Timeout while reading from socket.\n");


_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

Reply via email to