Forum Discussion
David_Carlin_20
Mar 09, 2011Nimbostratus
Thanks for this code. We just implemented it and I wanted to share some changes we made to make it a little more robust.
Firstly, you set a lot of variables that you don't use: client, uri, method and host
Limiting content-length to 2048 doesn't allow large form submissions. Looking through the forum we realized we can increase this to 4000000 without running into the 4Mb limitation.
In rare occasions it wasn't resetting retries to 0, which was causing it to go to the second pool when it shouldn't. So in the else of LB_SELECTED we set retries to 0 again to get around this.
Hope this helps someone :)
Dave