Forum Discussion
Micha__Iwaszko_
Aug 24, 2011Nimbostratus
pycontrol.pycontrol.BIGIP() timeout/keepalive?
Where I can find, what's my BIGIP() keepalive or timeout value? I'm asking because I don't know (while looping some LocalLB.xxx() with time.wait()) if I am to run BIGIP() every loop cycle or just once...
L4L7_53191
Aug 25, 2011Nimbostratus
IIRC there's no keep-alive - each socket is independent of the next, which is consistent with RPC style calls. But note that you don't need to create another object inside the loop. Since each socket is independent, a new one will be used on subsequent calls.
Now all that said, the transport for Suds is based on urllib2 and you can override this and build in keep-alives if you're really interested in doing so. In pycontrol2 all of the suds client specifics are exposed and you can call set_options() against it for various (read: all) of the suds client options. Have a look at the suds attribute (b.LocalLB.Foo.suds) to see what I mean.
Here's a post that implements a custom transport class that will allow you to do this. Personally, I've not come across a real need though...
http://lists.fedoraproject.org/pipermail/suds/2010-May/000908.html
--Matt
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects