{"action":"created","issue":{"url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/313","labels_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/313/comments","events_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/313/events","html_url":"https://github.com/tatsuhiro-t/nghttp2/issues/313","id":98366251,"number":313,"title":"nghttpx with tsocks","user":{"login":"LPardue","id":6571445,"avatar_url":"https://avatars.githubusercontent.com/u/6571445?v=3","gravatar_id":"","url":"https://api.github.com/users/LPardue","html_url":"https://github.com/LPardue","followers_url":"https://api.github.com/users/LPardue/followers","following_url":"https://api.github.com/users/LPardue/following{/other_user}","gists_url":"https://api.github.com/users/LPardue/gists{/gist_id}","starred_url":"https://api.github.com/users/LPardue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LPardue/subscriptions","organizations_url":"https://api.github.com/users/LPardue/orgs","repos_url":"https://api.github.com/users/LPardue/repos","events_url":"https://api.github.com/users/LPardue/events{/privacy}","received_events_url":"https://api.github.com/users/LPardue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-31T10:49:38Z","updated_at":"2015-08-01T04:56:55Z","closed_at":null,"body":"Hi Tatsuhiro,\r\n\r\nAs part of my work I have returned to an old test VM and updated it to use nghttp2 1.1.3-DEV (from 0.6). \r\n\r\nIn this VM I had nghttpx connecting to the backend via SOCKS using tsocks .e.g `tsocks nghttpx --backend='example.com,80' --frontend='192.168.56.101,80' --frontend-no-tls`.\r\n\r\nBefore updating, clients would make requests and get 200 responses. Now with v1.1.3-DEV I only see 502 (Bad Gateway) responses. I wondered if any of the changes introduced in the meantime may have affected how tsocks works with nghttpx.\r\n\r\nI'm not ruling out other possible causes but I've tested my use of tsocks with other applications and they function ok. Looking at a packet trace it appears that nghttpx does not negotiate the SOCKS connection properly, resulting in a failure and ultimately the 502.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/comments/126864340","html_url":"https://github.com/tatsuhiro-t/nghttp2/issues/313#issuecomment-126864340","issue_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/313","id":126864340,"user":{"login":"tatsuhiro-t","id":404610,"avatar_url":"https://avatars.githubusercontent.com/u/404610?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsuhiro-t","html_url":"https://github.com/tatsuhiro-t","followers_url":"https://api.github.com/users/tatsuhiro-t/followers","following_url":"https://api.github.com/users/tatsuhiro-t/following{/other_user}","gists_url":"https://api.github.com/users/tatsuhiro-t/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsuhiro-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsuhiro-t/subscriptions","organizations_url":"https://api.github.com/users/tatsuhiro-t/orgs","repos_url":"https://api.github.com/users/tatsuhiro-t/repos","events_url":"https://api.github.com/users/tatsuhiro-t/events{/privacy}","received_events_url":"https://api.github.com/users/tatsuhiro-t/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T04:56:55Z","updated_at":"2015-08-01T04:56:55Z","body":"It turns out that if I used dante client (socksify), socks 5 just works with latest nghttpx.\r\nWhen tsocks with socks 5 was used, dante server logged \"socks protocol error.\"\r\n "}}