You can increase both your avast! timeout: Internet Mail provider > Customize > Advanced (tab)
and your email account timeout (generally, right click the email account, choose properties and the Advanced tab of settings).
You you can even disable the Timeouts…