canvas-lms/spec/lib/incoming_mail
Jon Willesen 3a4c1c24fd add timeouts to incoming message processor
incoming message processor should not wait indefinitely on
external connections. it now implements timeouts on external
connections that are controlled by the Canvas.timeout_protection
method. It uses incoming_message_processor as the serivce name,
which makes these meaningful settings to change the timeout
behavior:
 - service_incoming_message_processor_timeout
 - service_incoming_message_processor_cutoff
 - service_incoming_message_processor_error_ttl

fixes CNVS-8198

test plan:
 - see the incoming message processor wiki page for instructions
   on how to do the configuration and run these tests.
 - create a fifo in an empty directory, configure
   incoming_mail.yml to read from the directory, run
   script/process_incoming_emails and make sure it exits in
   30 seconds or so.
 - use nc -l <port> to listen on a port, configure
   incoming_mail.yml to access that port on localhost, and run
   script/process_incoming_emails and make sure it exits in
   30 seconds or so.
 - run script/process_incoming_emails against an actual email
   account and make sure it can still process emails normally.

Change-Id: I23c67c1e8c0581a1e6ca69ab2c7b8855090688d1
Reviewed-on: https://gerrit.instructure.com/24483
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Cam Theriault <cam@instructure.com>
Reviewed-by: Jon Willesen <jonw@instructure.com>
Product-Review: Jon Willesen <jonw@instructure.com>
2013-09-25 16:47:02 +00:00
..
configurable_timeout_spec.rb add timeouts to incoming message processor 2013-09-25 16:47:02 +00:00
directory_mailbox_spec.rb improve robustness of incoming message processor 2013-04-29 14:47:09 +00:00
imap_mailbox_spec.rb add timeouts to incoming message processor 2013-09-25 16:47:02 +00:00
incoming_message_processor_spec.rb add timeouts to incoming message processor 2013-09-25 16:47:02 +00:00
mailbox_spec_helper.rb add timeouts to incoming message processor 2013-09-25 16:47:02 +00:00
pop3_mailbox_spec.rb add timeouts to incoming message processor 2013-09-25 16:47:02 +00:00