-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've been doing a little more digging and here's what I've found:

1) The error fragment "error read from" only appears in the Pound source
code once.  It's http.c on line 601.  My C is a little rusty but what I
make of the source code is that it's reading the headers from a client
request at that point and the error is that it doesn't get any headers.

2) The only browser that I _know_ has experienced this problem is
Firefox 3.5.8 and higher.  Others may be experiencing it but I haven't
gotten any confirmation that they are.

Is it possible that Firefox is sending a mal-formed request that is
confusing pound?

David King
Goshen College ITS
[email protected]
574-535-7726



David W King wrote:
> Thanks, I'll try that.  I had been hesitant to set the timeouts too high
> because our users aren't going to want to wait 60-120 seconds for a page
> to load and if they get impatient and go do something else we might as
> well timeout the session and recycle the resources.  I'll increase it,
> though, and see what it does.
> 
> Our SSO is CAS from Ja-Sig.  We're not horribly happy with it right now
> for a number of reasons; I assume you're using CAMS?  Do you like it?
> 
> David King
> Goshen College ITS
> [email protected]
> 574-535-7726
> 
> 
> 
> Jacob Anderson wrote:
>> Hi David,
> 
>> I've seen that before as well with our servers loading the application
>> container after a server restart. We have our timeout set to 60 and it
>> appears to work well. I imagine that your first-time load does some name
>> lookups and IP address caching, which is probably causing the slow startup.
> 
>> You may have to set the timeout to something higher, like 120, to get around
>> the first-load overhead.
> 
>> Is your single-sign-on server CAMS from CafeSoft?
> 
>> -- Jake
> 
> 
>> -----Original Message-----
>> From: David W King [mailto:[email protected]]
>> Sent: Tuesday, March 16, 2010 12:37 PM
>> To: [email protected]
>> Subject: Re: [Pound Mailing List] Connection Timeouts
> 
>> Thanks for the response, Jacob.  I would like to avoid NATting for two
>> reasons 1) the problem only occurs 5% of the time or less so if I did
>> NAT and it worked, it wouldn't really prove anything since _most_ of the
>> time it works anyway and 2) the tomcat app is a single sign on thing for
>> a bunch of our web apps.  The web apps (which I don't have access to
>> change) are directing the clients to an https connection but the NAT
>> would connect them directly to the http tomcat connection (bypassing
>> pound and, therefore, SSL).
> 
>> I checked my tomcat/catalina logs but, unfortunately, tomcat isn't
>> logging connections.  I'll get that fixed but not today.
> 
>> As far as external services go, it relies on DNS and LDAP both of which
>> are functioning very well.  One thing we have noticed that may be of
>> interest is that the timeout error only occurs when the initial login
>> page is loading, it never occurs (that we know of) when the login form
>> is submitted.  That points to a tomcat issue but it may be pertinent
>> here as well.
> 
>> David King
>> Goshen College ITS
>> [email protected]
>> 574-535-7726
> 
> 
> 
>> Jacob Anderson wrote:
>>> Hello David,
>>> First step - try direct routing with a static NAT rule to jump your users
>>> directly to one back end. If they timeout, then it's a back end issue. If
>> it
>>> works great, then read on.
>>> Next, check your routing. The back end may have a firewall running that is
>>> not allowing the traffic on its local interface? I see that you are
>> running
>>> against 127.0.0.1, so next check the web logs.
>>> /path_to_tomcat/logs/catalina.out
>>> /path_to_tomcat/logs/tomcat_xx-yy-zzzz.txt
>>> If you are seeing connections entering tomcat, but not returning (in the
>>> log), then you have a container problem. Check the catalina.out file to
>> see
>>> if there are any errors on the command line output for the tomcat process.
>>> Lastly, if your application needs to hit a database, check that too. Make
>>> sure that you can route and resolve the database. If you are using any
>> NAMES
>>> for hosts, then check your DNS. DNS name resolution is the #1 culprit for
>>> poor application performance. Try to use IP addresses if you can, but that
>>> makes administration harder.
>>> Good luck! We use tomcat behind pound and it works great.
>>> -- jake
> 
>>> -----Original Message-----
>>> From: David W King [mailto:[email protected]]
>>> Sent: Tuesday, March 16, 2010 8:35 AM
>>> To: [email protected]
>>> Subject: [Pound Mailing List] Connection Timeouts
>>> I started a new job two weeks ago and with it I inherited a server
>>> running pound as a front end for tomcat.  I am a _complete_ pound noob
>>> but it worked fine until about a week ago when my users started
>>> reporting that intermittently they will get timeout messages in their
>>> browsers when trying to access this server. About the same time I
>>> started getting a lot of pound errors in syslog:
>>>> Mar 15 21:53:04 login pound: (7f419410f950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 21:53:09 login pound: (7f4194150950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 22:02:01 login pound: (7f419410f950) error read from
>> 199.8.237.104:
>>> Connection timed out
>>>> Mar 15 22:02:40 login pound: (7f4194191950) error read from
>> 199.8.237.104:
>>> Connection timed out
>>>> Mar 15 22:13:12 login pound: (7f4194191950) error read from
>> 199.8.237.189:
>>> Connection timed out
>>>> Mar 15 22:15:02 login pound: (7f419410f950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 22:15:03 login pound: (7f4194191950) error read from
>> 199.8.237.189:
>>> Connection timed out
>>>> Mar 15 22:20:12 login pound: (7f419410f950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 22:21:54 login pound: (7f41941d2950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 22:22:48 login pound: (7f41941d2950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 22:23:24 login pound: (7f4194150950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 22:29:12 login pound: (7f4194150950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 22:41:40 login pound: (7f4194150950) error read from
>> 98.206.89.134:
>>> Connection timed out
>>>> Mar 15 22:43:23 login pound: (7f4194150950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 22:43:23 login pound: (7f4194191950) error read from
>> 199.8.239.245:
>>> Connection timed out
>>>> Mar 15 23:02:53 login pound: (7f41941d2950) error read from
>> 199.8.237.235:
>>> Connection timed out
>>> Some details about my environment:
>>> $ pound -V
>>> starting...
>>> Version 2.4.3
>>>   Configuration switches:
>>>     --enable-cert1l
>>> Exiting...
>>> $ lsb_release -a
>>> No LSB modules are available.
>>> Distributor ID:     Ubuntu
>>> Description:        Ubuntu 9.04
>>> Release:    9.04
>>> Codename:   jaunty
>>> $ cat /etc/pound/pound.cfg
>>> ######################################################################
>>> ## global options:
>>> User                "www-data"
>>> Group               "www-data"
>>> #RootJail   "/chroot/pound"
>>> ## Logging: (goes to syslog by default)
>>> ##  0       no logging
>>> ##  1       normal
>>> ##  2       extended
>>> ##  3       Apache-style (common log format)
>>> LogLevel    2
>>> ## check backend every X secs:
>>> Alive               30
>>> ## use hardware-accelleration card supported by openssl(1):
>>> #SSLEngine  "<hw>"
>>> # poundctl control socket
>>> Control "/var/run/pound/poundctl.socket"
>>> TimeOut  30
> 
>>> ######################################################################
>>> ## listen, redirect and ... to:
>>> ## redirect all requests on port 8080 ("ListenHTTP") to the local
>>> webserver (see "Service" below):
>>> ListenHTTPS
>>>     Address <hostname removed>
>>>     Port    443
>>>    Cert "/etc/pound/<hostname removed>.pem"
>>> ## allow PUT and DELETE also (by default only GET, POST and HEAD)?:
>>>     xHTTP           0
>>>     Service
>>>             BackEnd
>>>                     Address 127.0.0.1
>>>                     Port    8080
>>>             End
>>>     End
>>> End
>>> ## EOF
>>> I hope I'm just missing something obvious here.  Can anyone else spot it?
>>> Thanks!
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkujiN4ACgkQH+/Vg7DylXYWTwCfbZ/eW4jg4pmoY9zpqTmJ76s+
BDcAnRssfDAG3L8aGXVikI9KBxiQ7uXD
=HZXi
-----END PGP SIGNATURE-----

--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to