cURL / Mailing Lists / curl-library / Single Mail

curl-library

SO_REUSEADDR and libcurl

From: Sachin Nikumbh <sanikumbh_at_gmail.com>
Date: Fri, 27 Jun 2014 13:38:44 -0400

Hi,

Is there any way to set the SO_REUSEADDR socket option through the libcurl
API? My client application is spawning many threads which are opening new
connections with an application server. But soon the application fails due
to lack of available ports as most of them are in the TIME_WAIT state.
Based on some old threads found over the net, it was not possible at some
point. I was wondering of there is any undocumented way of passing
SO_REUSEADDR option.

Thanks
Sachin

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-06-27