No timeout on sockets makes SMTP connections freeze

Bug #1116072 reported by Holger Brunn (Therp)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

If you misconfigured your SMTP server (like STARTTLS in place of SSL on port 465 as in my case) or your SMTP server is temporarily unavailable, you'll never reach a timeout. This leads to all kind of weird freezes (every action that triggers a ir_mail_server.connect()), that can be for posting to groups, creating projects, etc. Hard to find for laymen in any case.

Consider passing timeout=[something] to smtplib.SMTP{,_SSL} or call socket.setdefaulttimeout([something]) in the initialization code.

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.