cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: CURLINFO_LASTSOCKET returns error 56

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 2 Nov 2009 13:37:08 +0100 (CET)

On Mon, 2 Nov 2009, Karel K wrote:

> On a hint of Daniel on the curl-users list, I took a look at curltunnel (see
> http://repo.or.cz/w/curltunnel.git). This is a progam that uses libcurl to
> achieve the same functionality as proxytunnel (http://proxytunnel.sf.net)
> has, that is tunneling ssh over a proxy server. The advantage of curltunnel
> is that it can offer better proxy authentication methods than proxytunnel.
>
> After removing a small bug in the upstream code, it did actually work
> perfect on my linux box.

Oh, nice!

> However when run on windows is breaks. The line
>
> ret = curl_easy_getinfo(hnd, CURLINFO_LASTSOCKET, &sckt);
>
> returns a ret of 56, which is, according to strerror(ret): File locking
> deadlock error?
>
> As a newbie user of libcurl I have no idea where to go further. Any clues?

You need to use curl_easy_strerror() to get the error message, it is a libcurl
error not a libc one.

Or you can just read the include/curl.h header to figure out what 56 is.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-02

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET