>> - I'm not knowledgable about packaging binary jars; is there a way to
>> conditionalize the HTTPUtils code so that on JDK1.4 and above the
not-broken
>> socket API is used?

>Yes.

Is this the right packaging approach?  Would you accept such a patch?

if (java.lang.version >= 1.4)
{
        s = new Socket();
        if (proxyUsed.getValue())
                s.connect( new InetSocketAddress(httpProxyHost,
httpProxyPort), timeout );
        else
                        s.connect( new InetSocketAddress(host, port),
timeout );
}
else
{
        if (proxyUsed.getValue())
                s = new Socket(httpProxyHost, httpProxyPort);
        else
                        s = new Socket(host, port);
}

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to