cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_socket_action, epoll and HTTP redirect

From: Erik Johansson <erik_at_ejohansson.se>
Date: Mon, 1 Apr 2013 19:30:07 +0200

On Sat, Mar 30, 2013 at 7:13 PM, Erik Johansson <erik_at_ejohansson.se> wrote:
> I've tried with 7.29 on 64-bit ubuntu. Did you get the same fd number in
> both socket calls?

Got the same with latest curl from git:

# strace -esocket,connect ./curlepoll http://127.0.0.1:51276
Using libcurl/7.30.0-DEV OpenSSL/1.0.1c zlib/1.2.7 libidn/1.25 librtmp/2.3
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 4
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(51276),
sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now
in progress)
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1
ENOENT (No such file or directory)
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1
ENOENT (No such file or directory)
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(34328),
sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now
in progress)
^C

// Erik

-- 
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-01