Hello,
> > I understand that Protocols.HTTP.get_url() uses a default
> > Protocols.HTTP.Query() object whose both default timeout and
> > data_timeout are 120 seconds.
> >
> > Is that correct?
>
> Looks like it.
>
> > I have a script that is using this method and is blocked for hours in
> > TCP status 'ESTABLISHED'.
>
> Those timeouts rely on call outs. Maybe you haven't started the
> backend in your script, or maybe it's blocked?
I digged into Backend documentation, but i didn't found out something
relevant.
My script is quite simple:
script.pike
----8<----8<----8<----8<----
....
int main(int argc, array(string) argv)
{
....
foreach(urls, string url)
{
string s = Mystuff.handle_this(url);
}
....
}
---->8---->8---->8---->8----
Mystuff.pmod/module.pmod
----8<----8<----8<----8<----
string handle_this(url)
{
object http;
mixed result = catch{ http=Protocols.HTTP.get_url(url); };
....
}
---->8---->8---->8---->8----
Is there something wrong?
--
Bertrand LUPART
http://bertrand.gotpike.org/
|