Moved mg_connect()
Calling long-running URI handlers on each poll iteration