www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Keller <kel...@bfg.com>
Subject Re: mod_proxy/5972: Proxy cannot connect to many IIS 4.0 sites
Date Fri, 14 Apr 2000 22:17:41 GMT
Further investigations have shown the following....

1. All pages that are failing are http 1.1 type pages.

2. IE5 has an option, Use HTTP 1.1 through proxy connections, which, if
checked, seems to help.  Note - netscape 4 does not have an equivalent
selectable feature.

3. A modification in buff.c as follows... forces "short" timeouts for
sites that do NOT close connections at the end of a block transmission.
The modification below set this to 8 seconds - this should really be a
configurable parameter.

With these, we are starting to see acceptable performance for these "bad"
sites.

Further guidance is requested.

ted keller


ns2.bfg.com 36# diff -c buff.c.orig buff.c
*** buff.c.orig Wed Apr 12 23:23:36 2000
--- buff.c      Fri Apr 14 18:05:14 2000
***************
*** 264,270 ****
      rv = recv(fb->fd_in, buf, nbyte, 0);
      } else
      rv = ap_read(fb,buf,nbyte);
! #elif defined(TPF)
      fd_set fds;
      struct timeval tv;
  
--- 264,270 ----
      rv = recv(fb->fd_in, buf, nbyte, 0);
      } else
      rv = ap_read(fb,buf,nbyte);
! #elif (defined(TPF) || defined(SOLARIS))
      fd_set fds;
      struct timeval tv;
  
***************
*** 273,279 ****
          alarm(rv = alarm(0));
          FD_ZERO(&fds);
          FD_SET(fb->fd_in, &fds);
!         tv.tv_sec = rv+1;
          tv.tv_usec = 0;
          rv = ap_select(fb->fd_in + 1, &fds, NULL, NULL, &tv);
          if (rv > 0)
--- 273,280 ----
          alarm(rv = alarm(0));
          FD_ZERO(&fds);
          FD_SET(fb->fd_in, &fds);
!         /*tv.tv_sec = rv+1;*/
!         tv.tv_sec = 8;
          tv.tv_usec = 0;
          rv = ap_select(fb->fd_in + 1, &fds, NULL, NULL, &tv);
          if (rv > 0)
ns2.bfg.com 37# 




Mime
View raw message