[Bug 196115] New: net/tsocks: handle EISCONN when connecting to a server

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 19 00:29:35 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196115

            Bug ID: 196115
           Summary: net/tsocks: handle EISCONN when connecting to a server
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: accornehl at fastmail.fm
                CC: bdrewery at FreeBSD.org

Created attachment 150740
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150740&action=edit
patch for tsocks.c

Upstream bug: http://sourceforge.net/p/tsocks/bugs/20/
Version: FreeBSD 11.0-CURRENT #0 07482a2(onefs-compat): Wed Nov 19 19:50:05 PST
2014

~ % tsocks curl -LI google.com
14:30:52 libtsocks(33389): Error 56 attempting to connect to SOCKS server
(Socket is already connected)
curl: (52) Empty reply from server

The attached patch allows the connection to go down the right path when EISCONN
is returned, which is what happens when the connection is already established.
The tsocks handling works as I'd expect with this change.

~ % tsocks curl -LI google.com
HTTP/1.1 301 Moved Permanently
[...]
HTTP/1.1 200 OK
[...]

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list