{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/903","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/903/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/903/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/903/events","html_url":"https://github.com/mholt/caddy/issues/903","id":162292023,"number":903,"title":"timeout of 10s for some queries","user":{"login":"miekg","id":353371,"avatar_url":"https://avatars.githubusercontent.com/u/353371?v=3","gravatar_id":"","url":"https://api.github.com/users/miekg","html_url":"https://github.com/miekg","followers_url":"https://api.github.com/users/miekg/followers","following_url":"https://api.github.com/users/miekg/following{/other_user}","gists_url":"https://api.github.com/users/miekg/gists{/gist_id}","starred_url":"https://api.github.com/users/miekg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miekg/subscriptions","organizations_url":"https://api.github.com/users/miekg/orgs","repos_url":"https://api.github.com/users/miekg/repos","events_url":"https://api.github.com/users/miekg/events{/privacy}","received_events_url":"https://api.github.com/users/miekg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-06-25T17:41:53Z","updated_at":"2016-06-28T12:40:49Z","closed_at":null,"body":"This dashboard show some long timeouts for caddy <https://snapshot.raintank.io/dashboard/snapshot/DNB3UJWPJNrXKXiaIi47R716ic5Z4gdt?panelId=5&fullscreen>, if I look at the logging I think it correlates with\r\n```\r\nJun 25 17:17:13 x64 caddy[5770]: 2016/06/25 17:17:13 http: TLS handshake error from 103.255.4.78:10389: EOF\r\nJun 25 17:17:17 x64 caddy[5770]: 2016/06/25 17:17:16 http: TLS handshake error from 212.180.175.80:56260: EOF\r\n~~~\r\n\r\n#### 1. What version of Caddy are you running (`caddy -version`)?\r\n~~~\r\nCaddy 0.9-beta.2 (+15fa5cf Fri Jun 24 09:31:02 UTC 2016)\r\n 2 files changed, 6 insertions(+), 3 deletions(-)\r\ncaddy/caddymain/run.go\r\ncaddyhttp/httpserver/plugin.go\r\n~~~\r\n\r\n#### 2. What are you trying to do?\r\nMaking sense of my monitoring :)\r\n\r\n#### 3. What is your entire Caddyfile?\r\nNo really relevant. I've enable 'prometheus' (of course) and a custom middleware that is a backend for my wife's website (nlgids) <https://github.com/miekg/nlgids>\r\n\r\n#### 4. How did you run Caddy (give the full command and describe the execution environment)?\r\n~~~text\r\n[Unit]\r\nDescription=Caddy HTTP/2 web server\r\nDocumentation=https://caddyserver.com/docs\r\nAfter=network.target\r\n\r\n[Service]\r\nPermissionsStartOnly=true\r\nPIDFile=/var/www/caddy.pid\r\nLimitNOFILE=8192\r\nUser=www-data\r\nWorkingDirectory=/var/www\r\n#ExecStartPre=/sbin/setcap cap_net_bind_service=+ep /opt/bin/customCaddy\r\nExecStartPre=/sbin/setcap cap_net_bind_service=+ep /opt/bin/caddy\r\nExecStart=/opt/bin/caddy -pidfile /var/www/caddy.pid -agree=true -email \\\r\n    miek@miek.nl -conf=/etc/caddy/Caddyfile -log stdout\r\nRestart=on-failure\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n~~~\r\n\r\n#### 5. What did you expect to see?\r\nLow latency\r\n\r\n#### 6. What did you see instead (give full error messages and/or log)?\r\nHigh latency\r\n\r\n#### 7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?\r\nThink enabling the prometheus middleware should be enough to spot this behavior. (and setup grafana to graph to stuff, etc. etc.: <https://miek.nl/2016/March/02/enable-prometheus-metrics-in-caddy/>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/229037100","html_url":"https://github.com/mholt/caddy/issues/903#issuecomment-229037100","issue_url":"https://api.github.com/repos/mholt/caddy/issues/903","id":229037100,"user":{"login":"miekg","id":353371,"avatar_url":"https://avatars.githubusercontent.com/u/353371?v=3","gravatar_id":"","url":"https://api.github.com/users/miekg","html_url":"https://github.com/miekg","followers_url":"https://api.github.com/users/miekg/followers","following_url":"https://api.github.com/users/miekg/following{/other_user}","gists_url":"https://api.github.com/users/miekg/gists{/gist_id}","starred_url":"https://api.github.com/users/miekg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miekg/subscriptions","organizations_url":"https://api.github.com/users/miekg/orgs","repos_url":"https://api.github.com/users/miekg/repos","events_url":"https://api.github.com/users/miekg/events{/privacy}","received_events_url":"https://api.github.com/users/miekg/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T12:40:49Z","updated_at":"2016-06-28T12:40:49Z","body":"I rather not. But with some better monitoring it indeed shows up in http/2 only:\r\nhttps://snapshot.raintank.io/dashboard/snapshot/CQdxZnIxjsimTkwynXxOmTZntJWvTPq1\r\nscroll down to \"Response Duration\"\r\n\r\n"}}
{"actor":{"display_login":"miekg"}}