On Wed, Sep 29, 2004 at 09:50:11AM -0700, Bill Moseley wrote:
> I'm using keep alives and the form of $ua->get() that uses a callback
> function to read the data as it arrives.
> 
> If the callback function dies will the connection always be broken?

Well, according to ethereal, it seems like the answer is yes.  Even
when the content is very small and has all been received.

So, my next exciting question (I know you are excited due to the
response from my last post ;) is there a way in the callback function
to tell if the request has actually finished?

If there is a way then I can set a flag in my callback and instead of
aborting inside the callback (causing the connection to close) I could
deal with the flag outside the $ua->get call and not force the
connection closed.

I'm also still wondering if I can somehow ask LWP if a given URL would
be used with an open connection or not.  I didn't see anything in the
ConnCache docs.



-- 
Bill Moseley
[EMAIL PROTECTED]

Reply via email to