cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1721292 ] socks testcase patch

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 18 May 2007 22:14:12 -0700

Bugs item #1721292, was opened at 2007-05-18 23:03
Message generated for change (Comment added) made by grooverdan
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1721292&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniel Black (grooverdan)
Assigned to: Daniel Stenberg (bagder)
Summary: socks testcase patch

Initial Comment:
as per known bugs 23c you wanted test cases for socks.

Attached is a rough first draft.

need to do something heaps better with the ssh pid for the socks.

----------------------------------------------------------------------

>Comment By: Daniel Black (grooverdan)
Date: 2007-05-19 15:14

Message:
Logged In: YES
user_id=612034
Originator: YES

improved test case:
-> checks for openssh > 3.7 which was were socks5 got introduced
(http://www.openssh.com/txt/release-3.7). Do I need to handle
non-open-ssh?
-> separates sock4 & sock5
-> lower latency pid file handling
-> fix runsocksserver return in case of error
-> added documentation
File Added: socks-curl.patch

----------------------------------------------------------------------

Comment By: Daniel Black (grooverdan)
Date: 2007-05-19 10:52

Message:
Logged In: YES
user_id=612034
Originator: YES

thanks for the feedback. I'll incorporate these comments.
I'm considering adding socks4 and socks5 in the features (curl-config
--features) to make the code a bit neater. Is this acceptable? Thoughts on
how to number the socks4/5 test case numbers? btw i'm on the #curl irc
channel.

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2007-05-19 10:22

Message:
Logged In: YES
user_id=236775
Originator: NO

This is a neat approach--I'd forgotten than SSH supports SOCKS. Might as
well leverage the existing sshd support...

Here are some specific comments about the patch:

The test file starts curl using --socks5 but it appears that at least some
versions of ssh (corresponding to versions of sshd which the test harness
will run with) only support SOCKS4. To be safe, the <server> section should
probably support separate socks4 and socks5 entries so socks5 tests can be
skipped (in the future) when ssh doesn't support it (I don't think you need
a new corresponding port number). The <keywords> should also mention
SOCKS4. The <data> section is missing carriage return line-ending
characters. The URL in the <command> section currently contains the wrong
test number. runsocksserver should return (0,0) on error, not -1.

----------------------------------------------------------------------

Comment By: Daniel Black (grooverdan)
Date: 2007-05-18 23:07

Message:
Logged In: YES
user_id=612034
Originator: YES

also adds /usr/lib64/misc to sshserver.pl as thats were the sftp-server
plugin is on gentoo 64 bit machines.

----------------------------------------------------------------------

Comment By: Daniel Black (grooverdan)
Date: 2007-05-18 23:04

Message:
Logged In: YES
user_id=612034
Originator: YES

File Added: test700

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1721292&group_id=976
Received on 2007-05-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET