cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl-library Digest, Vol 84, Issue 32

From: gaurav shukla <gaurav.iips_at_gmail.com>
Date: Tue, 28 Aug 2012 17:27:46 +0530

Hi Daniel,

Let say i had to create connection pool in which i will going to store the
connection like key ="Host+port" , value = connection . & than i can used
those connection for any further request

but in libcurl that connection pool is maintain only inside the each easy
handle or multi handle object , That object is thread safe , at a time only
one connection of that object we can use , So to create a connection pool
we had to store the easy handle object without closing it .

Is there any way to simultaneously access "easy handle object"

Thanks
Gaurav Shukla

On Wed, Aug 22, 2012 at 3:30 PM, <curl-library-request_at_cool.haxx.se> wrote:

> Send curl-library mailing list submissions to
> curl-library_at_cool.haxx.se
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
> or, via email, send a message with subject or body 'help' to
> curl-library-request_at_cool.haxx.se
>
> You can reach the person managing the list at
> curl-library-owner_at_cool.haxx.se
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of curl-library digest..."
>
>
> Today's Topics:
>
> 1. Persistent Connection pool (gaurav shukla)
> 2. Re: Persistent Connection pool (Daniel Stenberg)
> 3. Re: Known Bug #37 - FIXED (Daniel Stenberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 21 Aug 2012 17:00:52 +0530
> From: gaurav shukla <gaurav.iips_at_gmail.com>
> To: curl-library_at_cool.haxx.se
> Subject: Persistent Connection pool
> Message-ID:
> <CA+WRUpwBg=
> J86wTcc4CBXFj4g0G_gTMQqmH4U6DFOwRzHghfBQ_at_mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Daniel,
>
> Just i want to know that "How Libcurl achieve persistent connection " ,
> either " they had used keep-alive concept of http1.1 " or " persistent
> connection pooling technique in which all unused connection are stored in a
> pool data structure for further use "
>
> Please look over my query.
>
> Thanks
> Gaurav Shukla
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20120821/75e170c6/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 21 Aug 2012 13:38:58 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Persistent Connection pool
> Message-ID: <alpine.DEB.2.00.1208211337460.22091_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Tue, 21 Aug 2012, gaurav shukla wrote:
>
> > Just i want to know that "How Libcurl achieve persistent connection " ,
> > either " they had used keep-alive concept of http1.1 " or " persistent
> > connection pooling technique in which all unused connection are stored
> in a
> > pool data structure for further use "
>
> I don't think I understand the question properly. libcurl achieves
> persistent
> connections by pooling unused connections for future re-use:
>
> http://curl.haxx.se/docs/faq.html#What_about_Keep_Alive_or_persist
>
> Is there any specific details in that handling you're asking about?
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 21 Aug 2012 23:37:32 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Known Bug #37 - FIXED
> Message-ID: <alpine.DEB.2.00.1208212332580.17335_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Mon, 20 Aug 2012, Joe Mason wrote:
>
> >> I just uploaded a test case to reproduce this problem (the top commit of
> >> https://github.com/JoeNotCharles/curl/commits/ntlm_connect - test2032).
> >
> > Fixed a typo in the test case, and uploaded a fix: top 2 commits of
> > https://github.com/JoeNotCharles/curl/commits/ntlm_connect (that's a
> force
> > push, as the commit with the test case was altered)
>
> Thanks. Unfortunately, test case 2032 always fails for me. I suspect it is
> a
> timing issue or something. It actually never reaches ConnectionExists() ...
> I'll try and see if I can figure out what's going on.
>
> --
>
> / daniel.haxx.se
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> curl-library mailing list
> curl-library_at_cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
>
>
> ------------------------------
>
> End of curl-library Digest, Vol 84, Issue 32
> ********************************************
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-28