I would suggest to use
Super Search (keywords : LWP timeout)
You'll find interesting posts, and may discover potential problems :
- timeout not working when establishing conexion to unreachable host
- the danger of setting your own sig handler
- redirection handling (3xx response)
"
Only
Bad
Coders
Badly
Code
In
Perl" (OBC2IP)