#34 Cannot increase connections w/proxy

open
nobody
None
5
2004-09-20
2004-09-20
Stanley Brown
No

Receive connection errors when I try to increase the
number of connections to 3 while using a proxy. I am
using version 2.1 of the program. The command I am
using is (proxy name removed):

cvsgrab -connections 3 -rootUrl
http://gcc.gnu.org/cgi-bin/cvsweb.cgi -packagePath gcc
-proxyHost {myproxy} -proxyPort 8080

Discussion

  • Ludovic Claude
    Ludovic Claude
    2004-10-13

    Logged In: YES
    user_id=254624

    Can you send me the full text of the errors? Try to launch
    with -debugWire parameter.
    Thanks,
    Ludovic

     
  • Logged In: YES
    user_id=618721

    Actually, you seems to use direct connection when
    -connections is set (Sorry for the post formating I can't
    find a way to attach a file).

    D:\programs\cvsgrab-2.1\cvsgrab-2.1>cvsgrab -proxyHost proxy
    -proxyPort
    8080 -rootUrl http://cvs.sourceforge.net/viewcvs.py/
    -destDir d:\projects\Hiber
    nate\HibernateExt -packagePath hibernate/HibernateExt -prune
    -connections 3 -deb
    ugWire
    [DEBUG] Java version: 1.4.2_03
    [DEBUG] Java vendor: Sun Microsystems Inc.
    [DEBUG] Java class path:
    D:\programs\cvsgrab-2.1\cvsgrab-2.1\\lib\cvsgrab.jar
    [DEBUG] Operating system name: Windows 2000
    [DEBUG] Operating system architecture: x86
    [DEBUG] Operating system version: 5.0
    [DEBUG] SUN 1.42: SUN (DSA key/parameter generation; DSA
    signing; SHA-1, MD5 dig
    ests; SecureRandom; X.509 certificates; JKS keystore; PKIX
    CertPathValidator; PK
    IX CertPathBuilder; LDAP, Collection CertStores)
    [DEBUG] SunJSSE 1.42: Sun JSSE provider(implements RSA
    Signatures, PKCS12, SunX5
    09 key/trust factories, SSLv3, TLSv1)
    [DEBUG] SunRsaSign 1.42: SUN's provider for RSA signatures
    [DEBUG] SunJCE 1.42: SunJCE Provider (implements DES, Triple
    DES, AES, Blowfish,
    PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
    [DEBUG] SunJGSS 1.0: Sun (Kerberos v5)
    Using proxy proxy:8080
    Using up to 3 simultaneous connections to load files
    CVSGrab version 2.1 starting...
    [TRACE] enter GetMethod(String)
    [TRACE] enter HttpClient.executeMethod(HttpMethod)
    [TRACE] enter
    HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
    [TRACE] enter
    HttpConnectionManager.getConnection(HostConfiguration, long)
    [DEBUG] HttpConnectionManager.getConnection: config =
    HostConfiguration[host=cv
    s.sourceforge.net, protocol=http:80, port=80], timeout = 0
    [TRACE] enter
    HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration
    )
    [TRACE] enter
    HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration
    )
    [DEBUG] Allocating new connection,
    hostConfig=HostConfiguration[host=cvs.sourcef
    orge.net, protocol=http:80, port=80]
    [DEBUG] HttpConnection.setSoTimeout(0)
    [TRACE] enter HttpConnection.open()
    [TRACE] enter HttpConnection.closeSockedAndStreams()
    [TRACE] enter HttpConnection.releaseConnection()
    [TRACE] enter
    HttpConnectionManager.releaseConnection(HttpConnection)
    [DEBUG] Freeing connection,
    hostConfig=HostConfiguration[host=cvs.sourceforge.ne
    t, protocol=http:80, port=80]
    [TRACE] enter
    HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration
    )
    [DEBUG] Notifying no-one, there are no waiting threads
    [ERROR] Failed to download file.
    java.net.UnknownHostException: cvs.sourceforge.net
    at
    java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at java.net.Socket.<init>(Socket.java:309)
    at java.net.Socket.<init>(Socket.java:124)
    at
    org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.c
    reateSocket(DefaultProtocolSocketFactory.java:118)
    at
    org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java
    :683)
    at
    org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Http
    ConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1048)
    at
    org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
    a:662)
    at
    org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
    a:529)
    at
    net.sourceforge.cvsgrab.WebBrowser.executeMethod(WebBrowser.java:206)

    at
    net.sourceforge.cvsgrab.CVSGrab.checkWebConnection(CVSGrab.java:682)
    at
    net.sourceforge.cvsgrab.CVSGrab.grabCVSRepository(CVSGrab.java:523)
    at net.sourceforge.cvsgrab.CVSGrab.run(CVSGrab.java:320)
    at
    net.sourceforge.cvsgrab.CVSGrab.main(CVSGrab.java:226)
    [TRACE] enter GetMethod(String)
    [TRACE] enter HttpClient.executeMethod(HttpMethod)
    [TRACE] enter
    HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
    [TRACE] enter
    HttpConnectionManager.getConnection(HostConfiguration, long)
    [DEBUG] HttpConnectionManager.getConnection: config =
    HostConfiguration[host=cv
    s.sourceforge.net, protocol=http:80, port=80], timeout = 0
    [TRACE] enter
    HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration
    )
    [TRACE] enter
    HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration
    )
    [DEBUG] Getting free connection,
    hostConfig=HostConfiguration[host=cvs.sourcefor
    ge.net, protocol=http:80, port=80]
    [DEBUG] HttpConnection.setSoTimeout(0)
    [DEBUG] Connection is stale, closing...
    [TRACE] enter HttpConnection.close()
    [TRACE] enter HttpConnection.closeSockedAndStreams()
    [TRACE] enter HttpConnection.open()
    [TRACE] enter HttpConnection.closeSockedAndStreams()
    [TRACE] enter HttpConnection.releaseConnection()
    [TRACE] enter
    HttpConnectionManager.releaseConnection(HttpConnection)
    [DEBUG] Freeing connection,
    hostConfig=HostConfiguration[host=cvs.sourceforge.ne
    t, protocol=http:80, port=80]
    [TRACE] enter
    HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration
    )
    [DEBUG] Notifying no-one, there are no waiting threads
    [ERROR] Failed to download file.
    java.net.UnknownHostException: cvs.sourceforge.net
    at
    java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at java.net.Socket.<init>(Socket.java:309)
    at java.net.Socket.<init>(Socket.java:124)
    at
    org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.c
    reateSocket(DefaultProtocolSocketFactory.java:118)
    at
    org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java
    :683)
    at
    org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Http
    ConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1048)
    at
    org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
    a:662)
    at
    org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
    a:529)
    at
    net.sourceforge.cvsgrab.WebBrowser.executeMethod(WebBrowser.java:206)

    at
    net.sourceforge.cvsgrab.CVSGrab.checkWebConnection(CVSGrab.java:682)
    at
    net.sourceforge.cvsgrab.CVSGrab.grabCVSRepository(CVSGrab.java:523)
    at net.sourceforge.cvsgrab.CVSGrab.run(CVSGrab.java:320)
    at
    net.sourceforge.cvsgrab.CVSGrab.main(CVSGrab.java:226)
    When attempting to connect to
    http://cvs.sourceforge.net/viewcvs.py/hibernate/Hi
    bernateExt/, got error: Failed to download file.
    When attempting to connect to
    http://cvs.sourceforge.net/viewcvs.py/, got error:
    Failed to download file.
    [ERROR] Cannot connect to the website, check your proxy settings
    [ERROR] There were some errors.
    [ERROR] If you cannot find an obvious answer, report the
    problem to http://sourc
    eforge.net/forum/forum.php?forum_id=174128

     
  • Logged In: YES
    user_id=618721

    Actually the configuration is applied and then the
    HttpClient is reset to allow multithreading :-/