curl-library
How to unsubscribe
Date: Thu, 3 Sep 2009 01:55:06 +0000
Hello,
How do i unsubscribe from curl library forum.. The email doesnt have unsubscribe link..Please let me know.
Thanks,
Bharani
> Date: Wed, 2 Sep 2009 19:51:53 +0200
> From: daniel_at_haxx.se
> To: curl-library_at_cool.haxx.se
> Subject: Re: Issue with Curb and closing connection
>
> On Wed, 2 Sep 2009, Emmanuel Pinault wrote:
>
> > (1..100).each do |n|
> > curl = Curl::Easy.new("http://localhost:5000")
> > curl.headers["Connection"] = "Close"
> > curl.http_post("/test", "q=hello")
> > curl = nil
> > end
> > sleep 60
> >
> > I really like libcurl but the fact that it is not closing the connection
> > after an object is marked to nil.. then it causes all those connection to be
> > open until the ruby process finished...
>
> Someone who knows what this binding does under the hood would need to explain
> what this snippet actually does in libcurl lingo.
>
> Given your description I would guess that curl_easy_cleanup() is never called
> on the easy handle so the connection is kept alive.
>
> --
>
> / daniel.haxx.se
_________________________________________________________________
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery
Received on 2009-09-03