Ubuntu Apache 10 second timeout

6,343

This sounds like mod_reqtimeout needs some tweaking. Take a look at the docs for mod_reqtimeout

On ubuntu 10.04, I believe you will find the configuration in:

/etc/apache2/mods-enabled/reqtimeout.conf
Share:
6,343

Related videos on Youtube

Andreas Jansson
Author by

Andreas Jansson

Updated on September 17, 2022

Comments

  • Andreas Jansson
    Andreas Jansson almost 2 years

    I'm debugging an API I'm building using netcat to send raw HTTP requests. The thing is that Apache closes the connection after 10 seconds, giving me very little time to type. I know that I could pipe a file to nc, or use any other workaround, but I'd like it to work as it's supposed to.

    The Timeout directive in apache2.conf is at its default of 300 seconds, KeetAliveTimeout at 15 seconds. Where could this 10 second timeout possibly be defined? I'm running Ubuntu 10.04 Desktop.

    Thanks,

    Andreas

    • Marco Ramos
      Marco Ramos about 14 years
      Do you have any firewall between the box where you're running the netcat and the Apache box? I've seen cases in which the "idle timeout" in the firewall was set too low.
    • Andreas Jansson
      Andreas Jansson about 14 years
      I don't think I do, when I sniff it with Wireshark it's the process on port 80 (Apache) that closes the connection. I run both client and server on the same box at the moment, so I imagine Wireshark would pick up any intermediaries.