in reply to Re^2: SOAP::Lite. Flush ssl session
in thread SOAP::Lite. Flush ssl session

sketchik:

Tracing through the docs for connect information: SOAP::Lite leads us to SOAP::Transport which references LWP::UserAgent which mentions the conn_cache method. That sounds like a promising "this is how they reuse connections" though, so we follow onwards to LWP::ConnCache where, sure enough, it seems that it's used for caching connections. The drop routine lets you specify the policy for caching connections. So it looks like you can call it to set the policy to undef, which indicates that connections shoulnd't be cached at all.

Alternatively (probably the first one I should've though of), if you could simply let your $client go out of scope, it may be enough to close the connection and force a new connection next time.

Hopefully, one of these two methods should get you going.

...roboticus

When your only tool is a hammer, all problems look like your thumb.