Benjamin Franks wrote:
>
> When using the parallel user agent, is there a way to set a maxsize for EACH of the
>registered requests--a different maxsize for each individual request? Something akin
>to the ->max_size(#BYTES) for the nonparallel useragent.
>
Yes, but you have to do some work to accomplish that.
Either set up a different callback routine for each URL the parallel calls
will visit, and have the different callback routines check total bytes recieved
and tell LWP to stop with this URL/connection if it exceeds the bytecount you want.
Or, have a single callback routine that checks (each time its called) which
URL/connection
is responding, then check its total size sent and abort further packets when
appropriate.
The test programs in the /t dir have examples of both callback routines and
aborting further packets (which I believe might be done by returning a value
of C_ENDCON (sp)).
Hope that helps,
Steve