How do you connect to Internet? Dial-up or DSL?
Did you configure avast > settings > connections (advanced)?
You must configure both timeouts in avast settings (Internet Mail) and into your email account settings (generally, advanced tab).
I suggest you let 600 seconds of timeout...