Re: [Twisted-Python] most efficient new connection rate limiting?

2009-02-04 Thread Stephen Thorne
osed connection, and then it will probably attempt to reconnect immediately. Whereas (3) relies on the tcp/ip stack of the connecting host to send a bunch of syn packets until it gets through, or times out and follows its timeout logic. -- Regards, Stephen Thorne Development Engineer NetBox Blue -

Re: [Twisted-Python] Twisted.mail SMTP server question

2009-03-15 Thread Stephen Thorne
ttern(emailaddress): return None return transform(emailaddress) reactor.listenTCP(12345, AddressResolverFactory()) Then you just throw all the email addresses at it from postfix like so: virtual_alias_maps = tcp:127.0.0.1:12345 virtual_mailbox_maps = tcp:127.0.0.1:12345 -- Regar

Re: [Twisted-Python] Twisted FTP server fails on PASV

2009-09-17 Thread Stephen Thorne
t thing to do is to add a -j LOG rule to your firewall and then look at /var/log/kernel in order to see what packets are being blocked. I would combine that approach with tcpdump to see what you can do to resolve this. -- Regards, Stephen Thorne Develop

Re: [Twisted-Python] fast high load protocol

2010-02-16 Thread Stephen Thorne
Vlad, Have you considered using twisted.protocols.amp ? -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted Web, Unicode & request.write()

2010-06-15 Thread Stephen Thorne
pended to the > content type. If you say the charset utf-8, you should emit utf-8. u'foo'.encode('utf-8') converts from a python unicode object to a str encoded using the utf-8 codec. -- Regards, Stephen Thorne Development Engineer Netbox Blue __

Re: [Twisted-Python] Punching a firewall with (or without) Twisted - the plot thickens

2010-06-17 Thread Stephen Thorne
he last 5 years support one > of UPnP or NAT-PMP? That's been my experience, at least. Not all of them. More to the point, I'm not aware of any corporate routers that support these things. It's too much of a security risk to be able to have arbitary machines on your LAN se

Re: [Twisted-Python] how to implement sleep?

2010-09-19 Thread Stephen Thorne
busy service, with pause 3 seconds between > attempts. How cant i implement this in twisted Perhaps you want ReconnectingClientFactory ? Set maxRetries to 3. See twisted.internet.protocols.ReconnectingClientFactory. -- Regards, Stephen Thorne Development Engineer Netbox Blue ___

Re: [Twisted-Python] Don't Thread On Me t-shirt proposal

2010-10-20 Thread Stephen Thorne
uot;No communication without asynchronization!" Really excited about these ideas. My original twisted tshirt is getting quite old and ratty. -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Don't Thread On Me t-shirt proposal

2010-10-21 Thread Stephen Thorne
he being missing okay? > > > > I think the missing apostrophe looks bad. > > Stupid question from a non anglophone: why the apostrophe is missing? "DONT THREAD ON ME" is the text on the shirt. "Don't" is a contraction of "Do not" and

Re: [Twisted-Python] PyCon extreme Twisted talk!

2010-10-21 Thread Stephen Thorne
nute lightning talk. 3 minutes was a tiny bit short for a proper demonstration of capabilities, 45 might be too long :P -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] DeferredSemaphore - action on acquire and release

2011-02-07 Thread Stephen Thorne
On 2011-02-07, Jason Rennie wrote: > d = sem.acquire() > d.addCallback(doSerialStuffAndRelease) Shouldn't this be spelled: d = sem.run(doSerialStuff) Which does acquasition and release of the sempahore properly? -- Regards, Stephen Thorne Development Engineer

Re: [Twisted-Python] DeferredSemaphore - action on acquire and release

2011-02-07 Thread Stephen Thorne
's what I mean, you shouldn't be using .acquire() or .release(), just .run(). doSerialStuff doesn't need a reference to the semaphore object. -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] DeferredSemaphore - action on acquire and release

2011-02-07 Thread Stephen Thorne
On 2011-02-08, Jason Heeris wrote: > On 8 February 2011 11:46, Stephen Thorne wrote: > > Um, that's what I mean, you shouldn't be using .acquire() or .release(), > > just .run(). doSerialStuff doesn't need a reference to the semaphore > > object. > > So

Re: [Twisted-Python] twisted can't find internet module

2011-02-10 Thread Stephen Thorne
about the nature of the "problem horse", as > google translate suggests the first response is about. :-) I did not use google translate, but I was wondering why horses were mentioned in the discussion as well. -- Regards, Stephen Thorne Development Engineer Netbox Blue

Re: [Twisted-Python] are you a bad enough dude to rescue Twisted?

2011-02-13 Thread Stephen Thorne
a question about this item from the scores: '15 points for committing a fix from a contributor' How is this calculated? I created a branch for #4844 but my score didn't jump, did I do it wrong? Is there a procedure I muffed up (commit message format)? -- Regards, Stephe

Re: [Twisted-Python] Proposal -- Code of Conduct

2015-06-23 Thread Stephen Thorne
I agree with Clayton's points. Please pick a code of conduct that others have used. Avoid the desire to specialize. I like the PSF code of conduct, http://bit.ly/psf-coc but any well regarded CoC will do. Stephen. On Tue, 23 Jun 2015 at 19:23 Clayton Daley wrote: > Not that I'm a heavy contrib

Re: [Twisted-Python] gRPC support in Twisted Python

2016-09-29 Thread Stephen Thorne
[+Nathaniel] https://groups.google.com/forum/m/#!topic/grpc-io/RpkyqqQy8TU/discussion Hi. I'd like to link you to the above discussion and cc it's original poster. On Wed, Sep 28, 2016, 22:51 Werner Thie wrote: > On 9/28/16 9:13 AM, Nursimulu, Khen wrote: > > Thanks Glyth for the prompt respon

Re: [Twisted-Python] Persisted protocol?

2011-04-06 Thread Stephen Thorne
gt; > What does 'persisted` here mean? It sounds like this is a rememant of when the reactor shutdown it used to serialise its state so it could be restarted later. -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Twisted

[Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-06 Thread Stephen Thorne
xample' So the goal of my post to this mailing list is: * I would like glyph's goal of having less arbitary code executed at twistd launch time to become a realisation, * I would like the process of creating a twisted plugin to be less of a cut+paste+fill-in-blanks hassle. -- Regards, St

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-06 Thread Stephen Thorne
ngs. kite-smackages/twisted/plugins/myplugin.py installed with any standard tool without simply hard-coding is a disaster. Putting it outside of that directory, more so. -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Twisted-Python ma

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-06 Thread Stephen Thorne
On 2011-04-07, Glyph Lefkowitz wrote: > > On Apr 7, 2011, at 1:38 AM, Stephen Thorne wrote: > > > On 2011-04-07, Glyph Lefkowitz wrote: > >> Because, frankly, Python installation tools REALLY REALLY SHOULD be > >> able to install Python files into Python packag

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-06 Thread Stephen Thorne
conchA Conch SSH service. procmon A process watchdog / supervisor Why do we care about complex quoting and linebreaks for descriptions? If you can't remember, just keep typing and let it get wrapped. -- Regards, Stephen Thorne Development Engineer Netbox Blue _

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-07 Thread Stephen Thorne
ly need SparQL or anything complicated, just the ability to resolve some simple triples. I do not like angle brackets, but I have always had a fond affection for n3. -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Twisted-Python mailin

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-07 Thread Stephen Thorne
le twisted/plugins/rdf_plugins.py file that scans for non-python metadata defined plugins and creates them. That way twisted doesn't need to depend on an RDF lib, and this can be a 'third party' outside-of-twisted package that if you want to use, you just specify it as a dependancy

Re: [Twisted-Python] Did anyone use twisted on windows (IOCP)?

2011-04-27 Thread Stephen Thorne
ady for production or not. > > Yes. Many people use it in production. I use IOCP on Windows XP and Windows 7 in "production", including with SSL, and we have not seen any problems. -- Regards, Stephen Thorne ___ Twisted-Python mailing l

Re: [Twisted-Python] deferred releasing too many tokens

2012-09-26 Thread Stephen Thorne
This is a better way of using DeferredSemaphore: def queue_thread( self , data=None ): self.queued_data= data return self.semaphoreService.run( self._T_to_thread ) It handles acquisition and release for you. This will avoid any code path that might result in a double-release.

Re: [Twisted-Python] how to change default reactor of twisted.internet?

2012-12-12 Thread Stephen Thorne
What is your question? On Wed, Dec 12, 2012 at 2:52 PM, Anil KARADAG wrote: > Hi all, > > ** ** > > ** ** > > I have a question about reactor of “twisted.internet” module. I found > below; > > ** ** > > ** ** > > The default reactor is “select”; > > ** ** > > [root@karadag internet]

Re: [Twisted-Python] logging in twisted based projects

2013-03-14 Thread Stephen Thorne
It's also perfectly fine to use python's logging module from within twisted, you don't have to use twisted.log, but you should be aware this will make your log files hard to correlate (between twistd.log and your own logfiles). On Thu, Mar 14, 2013 at 10:05 AM, Sergey Gerasimov wrote: > I’m imp

Re: [Twisted-Python] So... Python 3.4 is getting its own async I/O system

2013-03-18 Thread Stephen Thorne
Not relavent to your questions, but there's a mailing list for discussing the specifics of PEP 3156, which is worth subscribing to if you want to provide specific feedback on the API. https://groups.google.com/forum/?fromgroups#!forum/python-tulip On Tue, Mar 19, 2013 at 3:00 AM, Tim Allen wro