manage empty timeout and manage header X-Dancer-Timeout