cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1346 resolver error

From: Christian Hesse <eworm_at_users.sf.net>
Date: Mon, 17 Mar 2014 16:06:10 +0000

I was hit by this problem in gnupg, which uses libcurl to download keys from keyserver. But this is perfectly reproducable by curl command line tool itself.

My first idea was whether or not this is a problem of libcurl not being thread safe. The requests are done in parallel, possibly overwriting each others memory, no?

Any hints on how to debug this?

---
** [bugs:#1346] resolver error**
**Status:** open
**Labels:** dns 
**Created:** Mon Mar 17, 2014 03:40 PM UTC by Christian Hesse
**Last Updated:** Mon Mar 17, 2014 03:59 PM UTC
**Owner:** Daniel Stenberg
libcurl has a resolver bug that requires some conditions to trigger:
* libcurl tries to resolv A and AAAA records
* DNS response is too long to fit into a UDP packet
What happens:
* libcurl sends two DNS UDP requests, one for A record, one for AAAA record
* libcurl receives one truncated UDP response
* libcurl sends TCP request
* libcurl receives TCP response
* libcurl sends TCP reset, ignoring the response
Everything works just fine when querying only A record (give option -4).
A capture demonstrating the problem is attached.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-03-17

These mail archives are generated by hypermail.

donate! Page updated December 29, 2013.
web site info

File upload with ASP.NET