tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Pirsig <a...@pirsig.net>
Subject Re: Force Connection Close
Date Tue, 27 Oct 2009 17:29:27 GMT
Okay, I found the solution but I'm not quite sure why this is happening:

I'm using tomcat 6.0.20 with APR as a connector when I switch back to 
non apr connector everything works as aspected.

scripts# time telnet 192.168.0.65 8080
Trying 192.168.0.65...
Connected to 192.168.0.65.
Escape character is '^]'.
Connection closed by foreign host.

real 0m6.016s
user 0m0.000s
sys 0m0.000s

This I kinda strange :/ but the solution was to force tomcat to fallback 
to http11Protocol-non apr connector by using the protocol attribute. Now 
my server.xml looks like this:

<Connector port="8080"
emptySessionPath="true"
protocol="org.apache.coyote.http11.Http11Protocol"
enableLookups="false"
scheme="http" secure="false"
acceptCount="500"
debug="0"
maxThreads="700"
maxKeepAliveRequests="50"
threadPriority="10"
compression="off"
connectionTimeout="6000" disableUploadTimeout="true"/>

Regards,

Alex


George Sexton wrote:
> My mistake. You're right. The doc says millis.
>
> I remember pointing out a bug in 5.5 that disabled the timeout for
> connections. Perhaps the same issue exists in 6.0.
>
> I tried searching in BugZilla but I couldn't find it. 
>
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>  
>
>   
>> -----Original Message-----
>> From: Alexander Pirsig [mailto:alex@pirsig.net]
>> Sent: Tuesday, October 27, 2009 10:10 AM
>> To: Tomcat Users List
>> Subject: Re: Force Connection Close
>>
>> Hi George,
>>
>> thanks for the reply, I thought 6sec == 6000ms. Is the Documentation
>> wrong because I found the following in
>>
>> http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|
>> |connectionTimeout -> The number of milliseconds this *Connector* will
>> wait, after accepting a connection, for the request URI line to be
>> presented. The default value is 60000 (i.e. 60 seconds).
>>
>> So 6000ms == 6sec am I right?
>>
>> Regards,
>>
>> Alex
>>
>> George Sexton wrote:
>>     
>>> So, you have your connection timeout set to 6000 seconds. Did you
>>>       
>> wait that
>>     
>>> long? 1 Hour 40 minutes?
>>>
>>> George Sexton
>>> MH Software, Inc.
>>> http://www.mhsoftware.com/
>>> Voice: 303 438 9585
>>>
>>>
>>>
>>>       
>>>> -----Original Message-----
>>>> From: Alexander Pirsig [mailto:alex@pirsig.net]
>>>> Sent: Tuesday, October 27, 2009 9:57 AM
>>>> To: users@tomcat.apache.org
>>>> Subject: Force Connection Close
>>>>
>>>> Hi,
>>>>
>>>> I have have a question regarding the connectionTimeout. If I start a
>>>> telnet session on our http-connector
>>>>
>>>> telnet localhost 8080
>>>> Trying 127.0.0.1...
>>>> Connected to localhost.
>>>> Escape character is '^]'.
>>>> <----
>>>>
>>>> Connections never get reset. Is there a problem with the timeout
>>>>         
>> value?
>>     
>>>> Enclosed is my Connector configuration
>>>>
>>>> <Connector port="8080"
>>>>                emptySessionPath="true"
>>>>                enableLookups="false"
>>>>                scheme="http" secure="false"
>>>>                acceptCount="500"
>>>>                debug="0"
>>>>                maxThreads="1000"
>>>>                keepAliveTimeout="700"
>>>>                maxKeepAliveRequests="50"
>>>>                threadPriority="10"
>>>>                compression="off"
>>>>                connectionTimeout="6000"
>>>>         
>> disableUploadTimeout="true"/>
>>     
>>>> Is there a way to send a RST-Package to the client after some time I
>>>> know there is a option in Apache.
>>>>
>>>> Regards,
>>>>
>>>> Alex
>>>>
>>>> --------------------------------------------------------------------
>>>>         
>> -
>>     
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>         
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>     
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message