Add option to configure connection timeout

Signed-off-by: zml2008 <zach@zachsthings.com>
Correct dupe message handling so that the receive-events setting is actually respected

Signed-off-by: zml2008 <zach@zachsthings.com>