[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: mailer.py on Windows (and general svn-on-Windows commentary...)

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: Mon, 8 Sep 2008 21:59:29 +0200

> Here's another question: is there any reason, other than the fact
> it would add additional complexity, that the act of composing and
> delivering the mail isn't done asynchronously? If you're doing a
> whopping big commit (vendor drop, say), the post-commit mailer run
> can take an inordinate length of time, especially if you're dealing
> with slow MTAs.

No. You can do it asynchronously: if you close all in- and outputs (on
unix) or if you start an independent process (on windows), the server
will stop waiting for input from the hook to send back to the client.
You can continue processing in 'headless' mode after that.

> i.e. have a little daemon that gets notified when <root>/db gets
> modified, at which point, it fires into action, checks the latest
> repo revision, checks the last revision it sent out a mail for,
> then sends out a mail for each revision in between. This could
> be expanded to handle transient delivery errors more gracefully,
> as opposed to the single-shot effect you get now with mailer.py.



To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-09-08 21:59:43 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.