Bug 60309 - Graceful restart sometimes causes connection problems
Summary: Graceful restart sometimes causes connection problems
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.23
Hardware: PC All
: P2 normal with 2 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-27 09:41 UTC by dnie
Modified: 2017-03-02 11:22 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dnie 2016-10-27 09:41:07 UTC
When doing an graceful restart, I sometimes get errors on my clients.

When testing with the "Apache JMeter" stress tool with 50 parallel HTTP clients, I get different errors from JMeter like:

- Connection reset by peer: socket write error
- host.domain.com failed to respond
- SSLHandshakeException: Remote host closed connection during handshake

This happens on about 10% of my graceful restarts.
If this happens, 1 or more parallel HTTP connections are affected.
Comment 1 Luca Toscano 2017-01-28 11:32:18 UTC
Hi! 

Can you give us a bit more info about your settings? What MPM do you use? What it is its configuration? Is there an easy way to reproduce the issue?

Thanks!
Comment 2 dnie 2017-01-30 07:58:34 UTC
Hi,

We use Apache as a reverse proxy. Configuration is one virtual host with HTTPS. We use mod_proxy and mod_proxy_balancer.

The MPM is mpm_winnt and its config is:
  ThreadsPerChild  250
  MaxRequestsPerChild 0
  <nothing else>

To reproduce: 
Just run a stress test like Apache JMeter or Apache Bench on one existing location and keep it running. 
Then graceful restart Apache using command "httpd.exe -k restart -m Apache -d C:\path\to\apache"
The restart allways succeed but in some cases the stress test shows some connections errors.

Thanks for your help