GithubHelp home page GithubHelp logo

Comments (8)

peterlaser avatar peterlaser commented on April 28, 2024

The original fixed bug http://sourceforge.net/p/curl/bugs/1479/

from curl.

bagder avatar bagder commented on April 28, 2024

Can you please help us and describe the issue more? That stack trace isn't helping us a whole lot without more info. The best case would be if you can provide source code and a scenario on how to repeat it!

from curl.

peterlaser avatar peterlaser commented on April 28, 2024

Hi Daniel,
The reproduce steps is below:
1.Enable proxy in client host
2 Input an invalid server address in our client to connect

Result:
The process will be hanging until an error message is prompted
Thanks!

 On Tuesday, April 14, 2015 4:16 PM, Daniel Stenberg <[email protected]> wrote:

Can you please help us and describe the issue more? That stack trace isn't helping us a whole lot without more info. The best case would be if you can provide source code and a scenario on how to repeat it!—
Reply to this email directly or view it on GitHub.

from curl.

bagder avatar bagder commented on April 28, 2024

Something like this?

 curl -p -x localhost:80 non-existing.haxx.se -v

In your case, what does the proxy respond? I could not repeat the problem, I need more details.

from curl.

peterlaser avatar peterlaser commented on April 28, 2024

Hi Daniel,
Do you have applied the patch for http://sourceforge.net/p/curl/bugs/1479/ in your curl executable file? It should be only repro after the patch checked in.
I have not the curl executable file in hand, Could you please provide the build to me so that I can try it in my host? Thanks.

from curl.

bagder avatar bagder commented on April 28, 2024

I use the current git master. You can build your own from git or from a daily snapshot: http://curl.haxx.se/snapshots/ - I don't have any suitable executable to share.

from curl.

peterlaser avatar peterlaser commented on April 28, 2024

Hi Daniel,
I tried curl 7.42 executable from http://www.paehl.com/open_source/downloads/curl_X64_ssl.7z
The main thread will be hang for a while after Proxy-Connection: Keep-Alive below, please let me know if there is a way to collect the curl executable logs or need additional information, thanks.

C:\curl_X64_ssl\openssl>curl -x proxy.xx.xx:3128 -v https://

  • Rebuilt URL to: https://10.117.46.1/
  • Trying x.x.x.x...
  • Connected to x.x.x.x port 3128 (#0)
  • Establish HTTP proxy tunnel to 10.117.46.1:443

    CONNECT 10.117.46.1:443 HTTP/1.1
    Host: 10.117.46.1:443
    User-Agent: curl/7.42.0
    Proxy-Connection: Keep-Alive

The main thread will be hang for a while in here

< HTTP/1.0 503 Service Unavailable
< Server: squid/2.6.STABLE21
< Date: Thu, 23 Apr 2015 06:03:52 GMT
< Content-Type: text/html
< Content-Length: 1074
< Expires: Thu, 23 Apr 2015 06:03:52 GMT
< X-Squid-Error: ERR_CONNECT_FAIL 110
<

  • Received HTTP code 503 from proxy after CONNECT
  • Closing connection 0
    curl: (56) Received HTTP code 503 from proxy after CONNECT

from curl.

dfandrich avatar dfandrich commented on April 28, 2024

On Wed, Apr 22, 2015 at 11:12:31PM -0700, peterlaser wrote:

Hi Daniel,
I tried curl 7.42 executable from http://www.paehl.com/open_source/downloads/
curl_X64_ssl.7z
The main thread will be hang for a while after Proxy-Connection: Keep-Alive
below, please let me know if there is a way to collect the curl executable logs
or need additional information, thanks.

C:\curl_X64_ssl\openssl>curl -x proxy.xx.xx:3128 -v https://

• Rebuilt URL to: https://10.117.46.1/
• Trying x.x.x.x...
• Connected to x.x.x.x port 3128 (#0)
• Establish HTTP proxy tunnel to 10.117.46.1:443 > CONNECT 10.117.46.1:443
HTTP/1.1 > Host: 10.117.46.1:443 > User-Agent: curl/7.42.0 >
Proxy-Connection: Keep-Alive >

The main thread will be hang for a while in here

< HTTP/1.0 503 Service Unavailable
< Server: squid/2.6.STABLE21
< Date: Thu, 23 Apr 2015 06:03:52 GMT
< Content-Type: text/html
< Content-Length: 1074
< Expires: Thu, 23 Apr 2015 06:03:52 GMT
< X-Squid-Error: ERR_CONNECT_FAIL 110
<

  □ Received HTTP code 503 from proxy after CONNECT
  □ Closing connection 0 curl: (56) Received HTTP code 503 from proxy after
    CONNECT

This sounds like perfectly normal behaviour if the proxy is unable to reach the
server. Once the proxy times out trying, it will return the error code that
curl reports.

Dan

from curl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.