curl-and-python

Re: It is possible to set "TIME_WAIT" through pycurl?

From: Michael Wood <esiotrot_at_gmail.com>
Date: Thu, 23 Jan 2014 13:55:34 +0200

Hi

On 17 January 2014 00:58, Morgan Yang <Morgan.Yang_at_radisys.com> wrote:

> Hi All:
>
>
>
> I have various stress tests for our REST API’s. If I send to many
> messages, I would get “cannot assign requested address” error.
>
> This could be alleviated by changing the “TIME_WAIT” options in the socket
> connection code. I’m wondering can that be configured directly via PYCURL?
> I didn’t see it explicitly listed on
> http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
>
>
>
Maybe what you want is something along the lines of setsockopt() with
SO_REUSEADDR? Not sure it will work for your use case, though.

http://www.unixguide.net/network/socketfaq/4.5.shtml

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTSOCKOPTFUNCTION

-- 
Michael Wood <esiotrot_at_gmail.com>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2014-01-23