mturk       2002/09/24 02:05:50

  Modified:    jk/native2/common jk_channel_socket.c
  Log:
  Resolve (I hope) the WIN32 reported bug 12346. Caused by the
  connection refusing on TC side during high load. If the TC refuses
  connection keep trying instead of returng error.
  
  Revision  Changes    Path
  1.39      +4 -3      jakarta-tomcat-connectors/jk/native2/common/jk_channel_socket.c
  
  Index: jk_channel_socket.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_channel_socket.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- jk_channel_socket.c       8 Jul 2002 13:41:30 -0000       1.38
  +++ jk_channel_socket.c       24 Sep 2002 09:05:50 -0000      1.39
  @@ -312,11 +312,12 @@
           
   #ifdef WIN32
           if(SOCKET_ERROR == ret) { 
  -            errno = WSAGetLastError() - WSABASEERR;
  +            errno = WSAGetLastError();
           }
  -#endif /* WIN32 */
  -
  +    } while (ret == -1 && errno == WSAECONNREFUSED);
  +#else
       } while (-1 == ret && EINTR == errno);
  +#endif /* WIN32 */
   
       /* Check if we connected */
       if(ret != 0 ) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to