On Mon, 2002-01-14 at 02:59, Jesus Cea Avion wrote: > > > With a 512 "chunk" write buffer, for example, a megabyte email will > > > have, at least, 2048 "write" calls. > > > > How about wrapping the entire transaction, not the individual writes? > > That would mean only one alarm and signal call for the entire > > megabyte. > > What timeout would you use?. An hour?. In Spain, a megabyte/hour is not > uncommon. In fact, I've seen far lower transfer rates. > > Four hours?. The the user would have a locked mailbox for an extended > period...
Make it adaptive: Time the first chunk and use a derived timeout for all the remaining chunks.