Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURL_LOCK_DATA_DNS threaded-shared-conn.c hangs #5408

Closed
Fricker95 opened this issue May 17, 2020 · 3 comments
Closed

CURL_LOCK_DATA_DNS threaded-shared-conn.c hangs #5408

Fricker95 opened this issue May 17, 2020 · 3 comments
Labels
libcurl API name lookup DNS and related tech

Comments

@Fricker95
Copy link

Fricker95 commented May 17, 2020

I did this

In threaded-shared-conn.c from the examples, i added CURL_LOCK_DATA_DNS to the curl share handle and the program hangs. I have tried to compile curl with --disable-threaded-resolver and --enable-threaded-resolver both causes the same outcome.

output

Thread 0, gets http://www.example.com

Thread 1, gets http://www.example.com

GET / HTTP/1.1
Host: www.example.com
Accept: /

GET / HTTP/1.1
Host: www.example.com
Accept: /

  • Mark bundle as not supporting multiuse
    < HTTP/1.1 200 OK
    < Accept-Ranges: bytes
    < Age: 474184
    < Cache-Control: max-age=604800
    < Content-Type: text/html; charset=UTF-8
    < Date: Mon, 18 May 2020 04:51:51 GMT
    < Etag: "3147526947+gzip"
    < Expires: Mon, 25 May 2020 04:51:51 GMT
    < Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
    < Server: ECS (sjc/4E74)
    < Vary: Accept-Encoding
    < X-Cache: HIT
    < Content-Length: 1256
    <
  • Mark bundle as not supporting multiuse
    < HTTP/1.1 200 OK
    < Accept-Ranges: bytes
    < Age: 348481
    < Cache-Control: max-age=604800
    < Content-Type: text/html; charset=UTF-8
    < Date: Mon, 18 May 2020 04:51:51 GMT
    < Etag: "3147526947+gzip"
    < Expires: Mon, 25 May 2020 04:51:51 GMT
    < Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
    < Server: ECS (sjc/4E44)
    < Vary: Accept-Encoding
    < X-Cache: HIT
    < Content-Length: 1256
    <

curl/libcurl version

Occurs in both 7.70.0 & 7.69.0:

  • curl 7.69.0 (x86_64-apple-darwin19.3.0) libcurl/7.69.0 SecureTransport zlib/1.2.11 libidn2/2.3.0 nghttp2/1.40.0
    Release-Date: 2020-03-04
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
    Features: AsynchDNS HTTP2 IDN IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets

  • curl 7.70.0 (x86_64-apple-darwin19.4.0) libcurl/7.70.0 openssl/1.1.1d zlib/1.2.11 nghttp2/1.40.0
    Release-Date: 2020-04-29
    Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP
    Features: SSL IPv6 UnixSockets libz NTLM NTLM_WB TLS-SRP HTTP2 HTTPS-proxy ( w/ & w/o AsynchDNS)

operating system

Darwin 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64

@Fricker95 Fricker95 changed the title CURL_LOCK_DATA_DNS with embedded threads hangs CURL_LOCK_DATA_DNS threaded-shared-conn.c hangs May 18, 2020
@bagder
Copy link
Member

bagder commented May 18, 2020

"Added" means that you also share connection cache, right? That one is already a known bug: #4915 ...

@bagder bagder added libcurl API name lookup DNS and related tech labels May 18, 2020
@Fricker95
Copy link
Author

Yes, ok thank you! Should I close this issue?

@bagder
Copy link
Member

bagder commented May 23, 2020

If the problem goes away when you don't share the connection cache anymore, then yes this is then a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libcurl API name lookup DNS and related tech
Development

No branches or pull requests

2 participants