LWP::Parallel callback question
- From: robert.bradley@xxxxxxxxx
- Date: 27 Jan 2006 21:43:43 -0800
In the README I see the following:
"You can define callback routines which will be called whenever a
connection is established, is cut off, new data comes in or a request
finishes. The subroutines can be global for all requests you
registered, or different for every single request. "
This sounds like it is possible to register individual requests with
individual callbacks that get called when the request finishes. But,
it seems the only kind of callback that gets called when a request
finishes is global when we override the on_return method; it is called
for all request that are registered. The individual callbacks for each
request get invoked as data trickles back in, and I have to concatenate
it. I don't see any way to register an individual callback for a given
http request, that only gets called when the request finishes.
Is there some way to get a different callback for each request to only
be invoked once when the corresponding request completes? Or do I need
to write some code to implement this behavior? I don't want to go off
and re-invent the wheel in case I'm just missing the obvioius.
Any advice appreciated.
.
- Follow-Ups:
- Re: LWP::Parallel callback question
- From: John Bokma
- Re: LWP::Parallel callback question
- Prev by Date: How do I force a close connection in SOAP
- Next by Date: Crypt::SSLeay Installation Failure
- Previous by thread: How do I force a close connection in SOAP
- Next by thread: Re: LWP::Parallel callback question
- Index(es):
Relevant Pages
|
|