[Twisted-Python] SMTPClient disconnects following STARTTLS

2019-02-05 Thread Burak Arslan
e TLS handshake process to be able to understand why the TLS connection cannot resume? Any suggestions for troubleshooting this? A dry ConnectionDone doesn't tell much. Is it possible to make t.m.sendmail() attempt another delivery without STARTTLS? Best regards, Bu

Re: [Twisted-Python] process manager for twisted daemons?

2017-05-04 Thread Burak Arslan
Hello, On 05/04/17 02:21, jonathan vanasco wrote: > Is anyone deploying their twisted services with something other than > Supervisor? If so, I'd love to know. We're using djb's daemontools (with the -encore patchset) to manage our twisted and non-twisted (C++) daemons. Two advantages: 1. Big

Re: [Twisted-Python] reading multipart/form-data headers

2016-08-16 Thread Burak Arslan
On 08/12/16 12:58, Burak Arslan wrote: > Do you think I can get away > with relying on mmap here? So I'll go with the usual "don't touch it from the reactor thread" and I guess I'll be good :) Cheers, Burak ___ Twis

Re: [Twisted-Python] reading multipart/form-data headers

2016-08-12 Thread Burak Arslan
Hey Adi, hey Glyph, Thanks a lot for your answers. On 08/12/16 12:28, Adi Roiban wrote: > On 11 August 2016 at 21:52, Glyph Lefkowitz wrote: >> Thanks for using Twisted, and sorry about this shortcoming. Nothing to be sorry about, twisted is made of man-years of good work. Once you twist your

[Twisted-Python] reading multipart/form-data headers

2016-08-11 Thread Burak Arslan
Hello All, You can find a sample HTTP POST request using HTTP multipart/form-data at the end of this message. The server that handles this request is using twisted so I end up with a Request object. Is there a way I can extract the file name ("image008.jpg") from this stream? I'm looking at the s

Re: [Twisted-Python] Persuading Python's Logging to use twisted.logger

2016-05-09 Thread Burak Arslan
hello, On 05/09/16 23:50, Daniel Sutcliffe wrote: > The project I am working on uses pymodbus which I am sure shares a > fairly common attribute with many other modules of using Python's > standard Logging mechanism - a very reasonable choice even for a > module that supports Twisted, the library

Re: [Twisted-Python] How to design REST API with Twisted?

2015-10-25 Thread Burak Arslan
Hey! On 10/25/15 13:04, Wang Yan wrote: > Hi, > > I'm confused about how to design REST APIs with Twisted, especially > when my app have to interact with MySQL. > > Is there any basic design patterns for this kind of situation? I do Spyne, and I think it's _fa-bu-lous_ for building any web API o

[Twisted-Python] LimitedHistoryLogObserver is considered harmful ?

2015-04-02 Thread Burak Arslan
Hi, I happen to have the new logging hotness(tm) running in production as the backend to python's own logging module in one of the daemons that I'm responsible for. I also have dowser[1] integrated with this one so tryng to optimize memory usage is almost fun :) So I noticed one day LimitedHistor

Re: [Twisted-Python] Reporting total traffic that goes through an SSL socket

2015-03-26 Thread Burak Arslan
Hey Glyph, On 03/25/15 22:20, Glyph Lefkowitz wrote: > > However, there is a ticket in > progress: https://twistedmatrix.com/trac/ticket/5642 which has some > code that demonstrates how to make the TLS stuff "purely" a wrapper > all the way from the endpoint to your application code. > > What you

[Twisted-Python] Reporting total traffic that goes through an SSL socket

2015-03-25 Thread Burak Arslan
Hello All, I'm using twisted for implementing a custom protocol via SSL. I've been wondering though, is there an easy way of counting the number of bytes that go in and out of the socket, including SSL overhead? I can easily count what I'm reading and I'm writing, but not what actually goes throu

[Twisted-Python] Async RPC with Spyne and Twisted

2013-12-28 Thread Burak Arslan
Hi there, As you might remember from the PyCon sprints, I've been working on making async rpc work within Spyne using twisted. That work is now mostly done, so I'm looking for your feedback on how/whether I should improve the API or its implementation. Here's a proof of concept: https://github.

Re: [Twisted-Python] TWISTED DINNER TOMORROW: 5:30PM on Sunday 2013-03-17 at Buca di Beppo in Campbell, CA. RSVP required.

2013-03-17 Thread burak . arslan
Hello! please count me in, i think i'll be anle to make it. Thanks -- Sent from my mobile. Pardon the brevity.On 16/03/2013 11:48 Bradley M. Kuhn wrote: On behalf of the Twisted Project Leadership Committee at Software Freedom Conservancy, I'd like to invite all Twisted developers and contribut