Ciao amici miei "Talponi", how are you doin'? Here we are again, this
morning ...
> I won't help a lot I'm afraid. Two questions (I could read the code but
>I guess you can reply right away :-) :
>
> a) when finished with the first request are you closing the
> HTTP connection ?
Well, persistent connection are first of all activated by default, but it's
possible to disable them by using the DisablePersistentConnection() method.
This is the first point, because we must also see if a server supports them
or not. If the request catches the HTTP/1.1 server string into the first
line of the header we are enabled to use the PCs.
So, after a request, before closing a connection, the code checks if the
PCs are enabled (both the option and the HTTP/1.1 response). If not the
connection is closed.
HTTP/1.1 draft suggest to send a header "Connection: close" (or something
similar) when we are doing the last request. But I realized that it's the
same of closing the connection with CloseConnection() (that is to say
connection.close()). But this method is also called by the class destructor
.. so, I think, no problem !!!
>
> b) could you write the conditions into testnet.cc/t_htnet so that I can try
> and see the behaviour ? I may even be able to debug it ;-)
I will do my best in order to let you try the testnet code (I hope I could
do in this morning). ;-)
Ciao
-Gabriele
-------------------------------------------------
Gabriele Bartolini
U.O. Rete Civica - Comune di Prato
Prato - Italia - Europa
e-mail: [EMAIL PROTECTED]
http://www.po-net.prato.it
-------------------------------------------------
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.