Re: httpd stops accepting connections after a few hours on current

2015-07-16 Thread Tor Houghton
On Wed, Jul 15, 2015 at 11:40:31PM +0930, Jack Burton wrote: > > > > Post it to tech@ . > > Done. See post to tech@ titled "httpd: patch to close TLS sockets that > fail before TLS handshake". > Thanks; the fd's on my deployment (5.7-stable) have been stable since application of this patch 12 h

Re: httpd stops accepting connections after a few hours on current

2015-07-15 Thread Ax0n
Possibly related, I did have an http-only httpd exhibit similar behavior after running for about 5 days. httpd processes were running, but port 80 was wholly unresponsive. I attempted to find a way to grab a core from the processes, but I couldn't figure it out. I had to get the sites back up and

Re: httpd stops accepting connections after a few hours on current

2015-07-15 Thread Jack Burton
On Wed, 2015-07-15 at 12:56 +, Mike Burns wrote: > On 2015-07-15 21.49.11 +0930, Jack Burton wrote: > > Sorry, didn't realise I couldn't post a patch to the misc@ (I've never > > needed to before). > > > > Please excuse my ignorance, but what is the accepted way to contribute a > > patch? >

Re: httpd stops accepting connections after a few hours on current

2015-07-15 Thread ludovic coues
2015-07-15 14:56 GMT+02:00 Mike Burns : > On 2015-07-15 21.49.11 +0930, Jack Burton wrote: >> Sorry, didn't realise I couldn't post a patch to the misc@ (I've never >> needed to before). >> >> Please excuse my ignorance, but what is the accepted way to contribute a >> patch? > > Post it to tech@ .

Re: httpd stops accepting connections after a few hours on current

2015-07-15 Thread Mike Burns
On 2015-07-15 21.49.11 +0930, Jack Burton wrote: > Sorry, didn't realise I couldn't post a patch to the misc@ (I've never > needed to before). > > Please excuse my ignorance, but what is the accepted way to contribute a > patch? Post it to tech@ .

Re: httpd stops accepting connections after a few hours on current

2015-07-15 Thread Jack Burton
On Wed, 2015-07-15 at 21:41 +0930, Jack Burton wrote: > The fix is trivial -- see attached patch (against 5.7-stable -- sorry, > I don't have any hosts running -current at present). <...> > [demime 1.01d removed an attachment of type text/x-patch which had a > name of httpd_server_accept_tls.patc

Re: httpd stops accepting connections after a few hours on current

2015-07-15 Thread Jack Burton
On Mon, 2015-07-13 at 16:19 +0200, Tor Houghton wrote: > On Mon, Jul 13, 2015 at 10:52:46PM +0930, Jack Burton wrote: > > > > > > I don't pretend to know httpd (at all), but I'm wondering, what should > > > fstat(1) say, over time, for the httpd processes? > > > > Thanks Tor -- that was exactly

Re: httpd stops accepting connections after a few hours on current

2015-07-13 Thread Edgar Pettijohn
In my very limited test I could only hang up a server on 443 not 80.

Re: httpd stops accepting connections after a few hours on current

2015-07-13 Thread Alex Greif
Hi, maybe this problem is related to this one? http://marc.info/?l=openbsd-misc&m=143091663725238&w=2 thanks, Alex

Re: httpd stops accepting connections after a few hours on current

2015-07-13 Thread Tor Houghton
On Mon, Jul 13, 2015 at 10:52:46PM +0930, Jack Burton wrote: > > > > I don't pretend to know httpd (at all), but I'm wondering, what should > > fstat(1) say, over time, for the httpd processes? > > Thanks Tor -- that was exactly the clue I needed to isolate the > problem. > > [snip] > > admin ta

Re: httpd stops accepting connections after a few hours on current

2015-07-13 Thread Jack Burton
On Mon, 2015-07-13 at 11:02 +0200, Tor Houghton wrote: > On Sun, Jul 12, 2015 at 07:56:37PM +0930, Jack Burton wrote: > > > > It is possible I simply failed to provision sufficient capacity -- > > which could easily be fixed by adding a login class for www with a > > higher limit on open fds -- b

Re: httpd stops accepting connections after a few hours on current

2015-07-13 Thread Tor Houghton
On Sun, Jul 12, 2015 at 07:56:37PM +0930, Jack Burton wrote: > > It is possible I simply failed to provision sufficient capacity -- > which could easily be fixed by adding a login class for www with a > higher limit on open fds -- but I fear that might just be hiding the > problem rather than addr

Re: httpd stops accepting connections after a few hours on current

2015-07-12 Thread Jack Burton
On Sat, 2015-07-11 at 15:38 +0930, Jack Burton wrote: > It hasn't happened here in a few days now so I don't have a log extract > on hand to share (but can post one next time it happens). Okay, the issue returned this afternoon and the httpd debug output certainly sheds more light on the problem.

Re: httpd stops accepting connections after a few hours on current

2015-07-10 Thread Jack Burton
On Thu, 2015-07-09 at 11:59 +0200, Tor Houghton wrote: > On Wed, Jul 08, 2015 at 10:04:27PM -0500, Theodore Wynnychenko wrote: > > > > [snip] > > > > server https://server2.tldn.com, client 2067 (63 active), 10.0.28.254:60330 > > -> > > 10.0.28.130:443, buffer event error > > [..] > > server htt

Re: httpd stops accepting connections after a few hours on current

2015-07-10 Thread Theodore Wynnychenko
-Original Message- From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Edgar Pettijohn Sent: Friday, July 10, 2015 7:32 PM To: misc@openbsd.org Subject: Re: httpd stops accepting connections after a few hours on current On 07/08/15 22:04, Theodore Wynnychenko wrote

Re: httpd stops accepting connections after a few hours on current

2015-07-10 Thread Edgar Pettijohn
On 07/10/15 19:32, Edgar Pettijohn wrote: On 07/08/15 22:04, Theodore Wynnychenko wrote: From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Edgar Pettijohn Sent: Wednesday, July 08, 2015 8:52 PM To: misc@openbsd.org Subject: Re: httpd stops accepting connections after a

Re: httpd stops accepting connections after a few hours on current

2015-07-10 Thread Edgar Pettijohn
On 07/08/15 22:04, Theodore Wynnychenko wrote: From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Edgar Pettijohn Sent: Wednesday, July 08, 2015 8:52 PM To: misc@openbsd.org Subject: Re: httpd stops accepting connections after a few hours on current On 07/08/15 12:15

Re: httpd stops accepting connections after a few hours on current

2015-07-09 Thread Matthew Martin
On 7/9/15, Tor Houghton wrote: > On Wed, Jul 08, 2015 at 10:04:27PM -0500, Theodore Wynnychenko wrote: >> >> [snip] >> >> server https://server2.tldn.com, client 2067 (63 active), >> 10.0.28.254:60330 -> >> 10.0.28.130:443, buffer event error >> [..] >> server https://server2.tldn.com, client 2068

Re: httpd stops accepting connections after a few hours on current

2015-07-09 Thread Tor Houghton
On Wed, Jul 08, 2015 at 10:04:27PM -0500, Theodore Wynnychenko wrote: > > [snip] > > server https://server2.tldn.com, client 2067 (63 active), 10.0.28.254:60330 -> > 10.0.28.130:443, buffer event error > [..] > server https://server2.tldn.com, client 2068 (63 active), 10.0.28.254:52350 -> > 10.0.2

Re: httpd stops accepting connections after a few hours on current

2015-07-08 Thread Theodore Wynnychenko
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Edgar Pettijohn Sent: Wednesday, July 08, 2015 8:52 PM To: misc@openbsd.org Subject: Re: httpd stops accepting connections after a few hours on current On 07/08/15 12:15, Henrik Friedrichsen wrote: > I have encountered

Re: httpd stops accepting connections after a few hours on current

2015-07-08 Thread Edgar Pettijohn
On 07/08/15 12:15, Henrik Friedrichsen wrote: I have encountered the same problem as has the guy in [1]. Maybe it is worth a bug report? Could this be related to FastCGI and exhaustion of some ressource? [1]: https://www.facebook.com/groups/2210554563/permalink/10153383131319564/ Have you run

Re: httpd stops accepting connections after a few hours on current

2015-07-08 Thread Henrik Friedrichsen
I have encountered the same problem as has the guy in [1]. Maybe it is worth a bug report? Could this be related to FastCGI and exhaustion of some ressource? [1]: https://www.facebook.com/groups/2210554563/permalink/10153383131319564/

Re: httpd stops accepting connections after a few hours on current

2015-07-08 Thread Ted Wynnychenko
Hello again: I was hoping someone might have an idea of how I could proceed with the httpd failure that I am seeing. As I said, I see nothing in the logs, and the only indication I have that something is wrong is that httpd stops responding to requests. At this point, I have added a cronjob of "