{"action":"created","issue":{"url":"https://api.github.com/repos/aarond10/https_dns_proxy/issues/40","repository_url":"https://api.github.com/repos/aarond10/https_dns_proxy","labels_url":"https://api.github.com/repos/aarond10/https_dns_proxy/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/aarond10/https_dns_proxy/issues/40/comments","events_url":"https://api.github.com/repos/aarond10/https_dns_proxy/issues/40/events","html_url":"https://github.com/aarond10/https_dns_proxy/issues/40","id":332027705,"node_id":"MDU6SXNzdWUzMzIwMjc3MDU=","number":40,"title":"Not working (sometimes)?","user":{"login":"jefferyto","id":252819,"node_id":"MDQ6VXNlcjI1MjgxOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/252819?v=4","gravatar_id":"","url":"https://api.github.com/users/jefferyto","html_url":"https://github.com/jefferyto","followers_url":"https://api.github.com/users/jefferyto/followers","following_url":"https://api.github.com/users/jefferyto/following{/other_user}","gists_url":"https://api.github.com/users/jefferyto/gists{/gist_id}","starred_url":"https://api.github.com/users/jefferyto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jefferyto/subscriptions","organizations_url":"https://api.github.com/users/jefferyto/orgs","repos_url":"https://api.github.com/users/jefferyto/repos","events_url":"https://api.github.com/users/jefferyto/events{/privacy}","received_events_url":"https://api.github.com/users/jefferyto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-13T14:44:04Z","updated_at":"2018-08-09T10:48:05Z","closed_at":null,"author_association":"NONE","body":"My apologies in advance as this may not be a very good bug report. I've spent a lot of time trying to get the proxy to work reliably, but I'm still not clear what it going wrong.\r\n\r\nI'm running LEDE 17.01.4 on a TP-Link Archer C7 v2, and I built the 2018-04-23 version of https_dns_proxy, based on the current [Makefile](https://github.com/openwrt/packages/blob/f74f517b9a33924e3430b7daf6f85a3b777279e0/net/https-dns-proxy/Makefile) in the packages feed.\r\n\r\n(As a side note, it would be nice if the DNS polling timeout was adaptive or at least shorter. I initially had the proxy started on boot only, but because the network wasn't ready yet, the DNS lookup would fail and it would wait 2 minutes to retry. I now have a hotplug script to restart the proxy whenever a network interface goes up, that seems to have bypassed the wait.)\r\n\r\nSometimes when the proxy is started, usually at boot or soon after, in the debug log I can see requests:\r\n\r\n```\r\n[D] 1528893225.373079 main.c:115 Received request for 'www.icloud.com' id: ffda, type 28, flags 0100\r\n[D] 1528893225.373549 https_client.c:57 Requesting HTTP/1.1: 1\r\n\r\n[D] 1528893225.789908 main.c:115 Received request for 'www.icloud.com' id: 4048, type 1, flags 0100\r\n[D] 1528893225.790256 https_client.c:57 Requesting HTTP/1.1: 1\r\n```\r\n\r\nbut the responses will have 0 length:\r\n\r\n```\r\n[D] 1528893226.830422 https_client.c:96 CURLINFO_EFFECTIVE_URL: https://cloudflare-dns.com/dns-query?ct=application/dns-json&name=www.icloud.com&type=1\r\n[D] 1528893226.830473 https_client.c:108 CURLINFO_RESPONSE_CODE: 0\r\n[D] 1528893226.830491 https_client.c:169 Times: 0.000246, 0.242603, 0.000000, 0.000000, 0.000000, 2.250143\r\n[D] 1528893226.830551 main.c:80 buflen 0\r\n\r\n[D] 1528893226.830580 https_client.c:96 CURLINFO_EFFECTIVE_URL: https://cloudflare-dns.com/dns-query?ct=application/dns-json&name=www.icloud.com&type=28\r\n[D] 1528893226.830598 https_client.c:108 CURLINFO_RESPONSE_CODE: 0\r\n[D] 1528893226.830616 https_client.c:169 Times: 0.000247, 0.297239, 0.000000, 0.000000, 0.000000, 2.259714\r\n[D] 1528893226.830672 main.c:80 buflen 0\r\n```\r\n\r\nI've used the `-x` switch (and it says it's using HTTP/1.1 for requests) but it doesn't seem to help. If I restart the proxy (either manually or automatically by my hotplug script), sometimes it will get responses with actual JSON content.\r\n\r\nI'd really like to have this resolved, as I don't want to worry about my DNS not working whenever my router is restarted :laughing: "},"comment":{"url":"https://api.github.com/repos/aarond10/https_dns_proxy/issues/comments/411717092","html_url":"https://github.com/aarond10/https_dns_proxy/issues/40#issuecomment-411717092","issue_url":"https://api.github.com/repos/aarond10/https_dns_proxy/issues/40","id":411717092,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTcxNzA5Mg==","user":{"login":"aarond10","id":210782,"node_id":"MDQ6VXNlcjIxMDc4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/210782?v=4","gravatar_id":"","url":"https://api.github.com/users/aarond10","html_url":"https://github.com/aarond10","followers_url":"https://api.github.com/users/aarond10/followers","following_url":"https://api.github.com/users/aarond10/following{/other_user}","gists_url":"https://api.github.com/users/aarond10/gists{/gist_id}","starred_url":"https://api.github.com/users/aarond10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarond10/subscriptions","organizations_url":"https://api.github.com/users/aarond10/orgs","repos_url":"https://api.github.com/users/aarond10/repos","events_url":"https://api.github.com/users/aarond10/events{/privacy}","received_events_url":"https://api.github.com/users/aarond10/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T10:48:05Z","updated_at":"2018-08-09T10:48:05Z","author_association":"OWNER","body":"Forget gdb then. An strace log would definitely be a good start. :)\r\nCan you also confirm the version of libcurl you're using (it'll appear in debug logs near the start) so I can try to replicate what you're seeing?"}}
{"actor":{"display_login":"aarond10"}}