﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
451	mlsys_mailer_deliver_.pl1 delivery timeout is way too long for modern network connections	Jim Lippard	Eric Swenson	While tracking down the cause of a hang and CPU spin while attempting and failing to send network mail over Chaosnet (see ticket #448, which I believe accounts for the CPU spin but not the hang), I next turned to mlsys_mailer_deliver_.pl1. This module is the per-host delivery driver: it obtains the service list for a host and calls each delivery module available in turn under a timeout which is the only one anywhere in the delivery path (this module → nit_ → mmd_chaos_ → mgp_io_). The timeout is a transmission rate allowance of 300 s plus 112 ms per character of the message (lines 62–63), a figure dating to 1970s dialup line speeds rather than to anything about reachability: a 200-character message gets 322 s, a 5,000-character one 860 s, a 10,000-character one 1,420 s. I ran into this with short test messages, which produced 322–326 second delivery attempts for 196–232 character messages. On expiration the module does a non-local goto out of punt_dproc that bypasses the handler teardown at lines 141–143. So the timeout neither measures the right quantity nor reliably ends the attempt — the goto unwinds through mmd_chaos_'s cleanup handler into an iox_$close that can block without bound. That last part has no fix available in this module: it has no handle on the dproc's blocked I/O, and the goto is itself what triggers the hanging close. That will be covered in a separate ticket on mgp_io_.pl1.	defect	new	minor	MR12.10	Networking	MR12.9		mlsys, mlsys_mailer_deliver_.pl1	
