Ciao,

  I discovered some bugs in the Document code. First of all I think we must 
decice which attribute should regard either a "per server" or a "per url" 
configuration.

  In the Document class constructor, for example, I found a bug regarding 
the "max_doc_size" attribute initialization. As I don't know it's been 
changed this way, I am now asking which is the purpose of that 
initialization: config.Value("url", u, "max_doc_size");

  The point is that the constructor of the Document class is called only 
with default arguments (and 'u' is not initialized). If we want to manage 
configuration attributes on a <url> basis, I think we need to provide 
Document class methods and members able to do that.

   So in order to make it work I changed this assignment into: 
config.Value("max_doc_size").

I have a couple of questions to ask you:

  1) Can you give me a list of attribute we want to depend either on a 
server or on a url configuration, please? For example, I know 
"persitent_connections" regards server.
  2) What about "max_doc_size"?
  3) And "max_retries"?

  This commit now enhances the features I expose yesterday and fixes some 
bugs due to a lack of tests from me. There's a more accurated debug show in 
the Server constructor. Now it seems to work and I tried to configure 
attributes this way:

# Configuration regarding all servers
persistent_connections: false
head_before_get: false
max_connection_requests: -1
timeout: 10
tcp_max_retries: 3
tcp_wait_time: 3
server_max_docs: 5

# Specific configuration
<server: www.po-net.prato.it>
persistent_connections: true
head_before_get: true
max_connection_requests: 5
timeout: 3
server_max_docs: 20
</server>

And it works ... ;-) Yep !!!

I also made some changes to testnet.cc (we can now configure how many times 
retry for a single document and how long we have to wait after the failure).

I think I am ready to leave for Paris now ... (better - I hope so).

Ciao and have fun !!!
-Gabriele


-------------------------------------------------

Gabriele Bartolini
Computer Programmer (are U sure?)
U.O. Rete Civica - Comune di Prato
Prato - Italia - Europa

e-mail: [EMAIL PROTECTED]
http://www.po-net.prato.it

-------------------------------------------------
Zinedine "Zizou" Zidane. Just for soccer lovers.
-------------------------------------------------
-------------------------------------------------


------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] 
You will receive a message to confirm this. 

Reply via email to