Line length (code standards)
Allow set_keepalive to close instead when needed
Avoid calling str_lower on nil