tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignacio J. Ortega" <na...@siapi.es>
Subject RE: cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_ch annel_socket.c
Date Sat, 28 Sep 2002 21:04:01 GMT
The comment is wrong, the problem is with the loadbalancer logic, if one
of the configured instances got lost, connect returns WSAECONNREFUSED,
with Malden's patch, the thread gots stuck in a loop trying to connectto
a non existing tc instance.. 

Incidentally i have this config to test tc4 in port 8019 and tc33 in
8009, i normally dont have the 2 versions working at the same time, so i
continually get WSAECONNREFUSED.. hence the problem.. 

Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: nacho@apache.org [mailto:nacho@apache.org]
> Enviado el: 28 de septiembre de 2002 22:06
> Para: jakarta-tomcat-connectors-cvs@apache.org
> Asunto: cvs commit: jakarta-tomcat-connectors/jk/native2/common
> jk_channel_socket.c
> 
> 
> nacho       2002/09/28 13:06:19
> 
>   Modified:    jk/native2/common jk_channel_socket.c
>   Log:
>   Reverted a prior fix, it seems that hangs w2k IIS, it's 
> starts to stuck threads in this loop until exhausted or max 
> connections reached..
>   
>   Revision  Changes    Path
>   1.41      +3 -4      
> 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_chann
> el_socket.c,v
>   retrieving revision 1.40
>   retrieving revision 1.41
>   diff -u -r1.40 -r1.41
>   --- jk_channel_socket.c	24 Sep 2002 22:36:28 -0000	1.40
>   +++ jk_channel_socket.c	28 Sep 2002 20:06:19 -0000	1.41
>   @@ -328,12 +328,11 @@
>            
>    #ifdef WIN32
>            if(SOCKET_ERROR == ret) { 
>   -            errno = WSAGetLastError();
>   +            errno = WSAGetLastError() - WSABASEERR;
>            }
>   -    } while (ret == -1 && errno == WSAECONNREFUSED);
>   -#else
>   -    } while (-1 == ret && EINTR == errno);
>    #endif /* WIN32 */
>   +
>   +    } while (-1 == ret && EINTR == errno);
>    
>        /* Check if we connected */
>        if(ret != 0 ) {
>   
>   
>   
> 
> --
> To unsubscribe, e-mail:   
<mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message