cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: getting information about opened/reused/closed sessions

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 Aug 2003 01:04:03 +0200 (CEST)

On Thu, 31 Jul 2003, Matthias Klose wrote:

> > Care to elaborate a little on your use case for us?
>
> I want to use it as a tool to simulate multiple clients (setting MAXCONNECTS
> to the number of clients), which send each a sequence of requests. In each
> of the sequences I want to be able to specify, when a new session is opened
> and closed (I think I can do this with the available options)

Yes, this sounds like an operation you can do with the options already
provided.

> and I want to check, if a session was re-opened (for library reasons) or
> unexpectedly closed (maybe for server reasons).

> maybe just extending the getinfo call to return two flags 'new session' and
> 'session closed'?

I think it would better to return either "NEW CONNECT" or "RE-USED CONNECTION"
to mark if the previous transfer was a new or a re-used connection.

Alternatively, or perhaps additionally, there would be another info that would
return in what state the most recent connection was left in: "CONNECTION
ALIVE" or "CONNECTION CLOSED".

Both these informationals would be rather easy and straight forward to
support. Would any or both of these fit your view of things?

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-04