Re: Issues in constraining number of open connections with curl multi interface

2012-01-06 Thread Mukul Kedare
Hi Daniel, As discussed earlier, we are using socket callbacks for easy handle to control open fds (connections). However, we ran into few issues, we suspect possible bug in close callback implementation in curl. Below given is the explanation of the issue we found : To limit the no. of

Re: Issues in constraining number of open connections with curl multi interface

2012-01-04 Thread Daniel Stenberg
On Tue, 3 Jan 2012, Mukul Kedare wrote: (Please don't top-post!) As suggested, we have tried out callbacks for sockets. We keep socket fd in our connection pool object along with the curl easy handle, this way we limit the number of fds with the same connection pool logic of ours. Following

Re: Issues in constraining number of open connections with curl multi interface

2012-01-03 Thread Mukul Kedare
Hi Daniel, As suggested, we have tried out callbacks for sockets. We keep socket fd in our connection pool object along with the curl easy handle, this way we limit the number of fds with the same connection pool logic of ours. Following are our observations : 1. opensocket resolves our problem

Re: Issues in constraining number of open connections with curl multi interface

2011-12-30 Thread Mukul Kedare
Hi Daniel, It seems like I had not put up the application logic properly in previous mail. Let me explain the it to you more clearly. Further, let me tell you what our assumptions were and what we understood after trying out sample codes and going through curl documentation. :) And finally

Issues in constraining number of open connections with curl multi interface

2011-12-28 Thread Mukul Kedare
Hi, In our multi threaded application we are maintaining a pool of connections (pool of easy handles for each URL). The connection pool has limited set of easy handles per URL. All the threads, have their own multi handle to which we add the easy handles from the connection pool based on the

Re: Issues in constraining number of open connections with curl multi interface

2011-12-28 Thread Daniel Stenberg
On Wed, 28 Dec 2011, Mukul Kedare wrote: All the threads, have their own multi handle to which we add the easy handles from the connection pool based on the URLs to which the requests are to be made. Keeping easy handles around for a multi handle will not affect the connection pool at all.