<div class="gmail_quote">On Sat, Aug 1, 2009 at 2:54 PM, Dave Britton <span dir="ltr">&lt;<a href="mailto:dave@davebritton.com">dave@davebritton.com</a>&gt;</span> wrote:<br><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What would be the best way for me to work around this?</blockquote><div><br>Fix the bug :).  Then, I hope, contribute a patch... (see <a href="http://twistedmatrix.com/trac/wiki/TwistedDevelopment">http://twistedmatrix.com/trac/wiki/TwistedDevelopment</a> for that part).<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Specifically, when I use twisted.mail.smtp sendmail() for a lengthy list, I<br>
fairly quickly get the &quot;too many open files&quot; message.<br>
</blockquote><div> (more detailed description of the problem snipped)<br><br>Yeah, that sounds like your problem is #3472.  There are two problems there: one is that the default behavior is such that you run out of file descriptors, and the other is that the behavior can&#39;t be customized.  The customization issue should probably be fixed first, and then the default behavior can be fixed by tweaking the default values for the customizations.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">or option2: Patch a timeout argument into sendmail to have it passed to<br>
SMTPSenderFactory(from_addr, to_addrs, msg, d)? Would this work? I can&#39;t<br>
figure out how or if SMTPSenderFactory would handle a timeout argument.<br>
</blockquote><div><br>I think this is what would be meant by &quot;fixing the bug&quot;; your description seems a bit too vague for me to tell if your solution would be solving it in a general way or not, but at first blush it seems about right.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sorry for the long message. Thanks for your advice!<br>
</blockquote><div><br>No need to apologize.  Thanks for your interest, and good luck! <br></div></div>