| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: exact number of connections (was Re: limit connection cache growth on multi interface)
From: Aleksandar Lazic <al-curllibrary_at_none.at>
Date: Sun, 10 Jun 2007 11:15:16 +0200
On Son 10.06.2007 11:43, Robert Iakobashvili wrote:
That's a very interesting question for a commandline tool, imho.
>To the best of my knowledge, the browsers are fetching a page, looking
It is a similar behavior as a crawler isn't it?!
I think there are more then one way ;-)
I would go like this:
---
set max_connections_per_site <NUM>
set deep_or_breadth (DEEP|BREADTH)
set deep_or_breadth_count <NUM>
set wait_human_read_time <NUM>
repeat as long as deep_or_breadth_count is not reached {
get site (e.g.: index.html)
parse site and ( count links and get the needed elements from remote
server
|| if element is to get make new connection but not more
the max_connections_per_site
)
wait_human_read_time()
if breadth && deep_or_breadth_count not reached {
get the next link from same directory-level (e.g.: /, /news/, ...)
}elsif deep && deep_or_breadth_count not reached {
get the next link from the next directory-level
}
}
---
I'am not sure if this is a behaviour which libcurl should have or the
curl-tool or some other programs which use libcurl.
Do you plan to add this into curl-loader ;-)?
thoughts
Aleks
Received on 2007-06-10
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info