Re: [Twisted-Python] Streaming HTTP

2015-11-16 Thread Michael Schlenker
se more or less). So we either just terminate the connection forcefully (reset) or read the full request and send it to /dev/null. Michael -- Michael Schlenker Senior Software Engineer CONTACT Software GmbH Tel.: +49 (421) 20153-80 Wiener Straße 1-3 Fax:+49

[Twisted-Python] twisted.web.xmlrpc.Proxy using the new HTTP 1.1 client?

2015-12-17 Thread Michael Schlenker
n the persistent connections feature of HTTP1.1 (due to TLS setup costs for new connections and burning through too many client sockets when many calls are made). Michael -- Michael Schlenker Senior Software Engineer CONTACT Software GmbH Tel.: +49 (421) 20153-80 Wiener Straß

[Twisted-Python] Error handling in twisted.web.HTTPClient for bad certificates with TLSMemoryBIOProtocol

2016-06-21 Thread Michael Schlenker
tion_from_error_queue ] Michael --- Michael Schlenker Senior Software Engineer CONTACT Software GmbH Tel.: +49 (421) 20153-80 Wiener Straße 1-3 Fax:+49 (421) 20153-41 28359 Bremen E-Mail: michael.schlen...@contact-software.com http://www.contact-software.

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-27 Thread Michael Schlenker
icrosoft Visual C++ 2008. > > - VS 2010 will NOT work > - the free VS 2008 Express works (for 32-bit builds .. it does not include a > 64-bit compiler) But you can add the cmdline 64-bit compiler by downloading the free Windows SDK. Michael -- Michael Schlenker Software

Re: [Twisted-Python] FW: Large (GB) File Upload

2012-07-31 Thread Michael Schlenker
, see http://twistedmatrix.com/trac/wiki/TwistedWebClient) """ def __init__(self, code, reason): self.code = code self.reason = reason def write(self, data): pass def read(self): return '' def seek(self, offset, wh

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread Michael Schlenker
ice and need to ignore it. The service itself should deal with this already. Michael -- Michael Schlenker Software Architect CONTACT Software GmbH Tel.: +49 (421) 20153-80 Wiener Straße 1-3 Fax:+49 (421) 20153-41 28359 Bremen http://www.contact.de/ E-Mail: m

Re: [Twisted-Python] Running twistd and tac files as Windows service

2012-10-24 Thread Michael Schlenker
Am 24.10.2012 14:14, schrieb Phil Mayers: > n 24/10/12 12:33, Michael Schlenker wrote: >> Am 24.10.2012 11:01, schrieb Phil Mayers: >>> On 10/24/2012 08:43 AM, John Aherne wrote: >> >> But what you are talking about is the SetConsoleCtrlHandler function. >> http

[Twisted-Python] How to get the Python socket object for an TLS connection?

2012-12-12 Thread Michael Schlenker
#x27;) ctx = DefaultOpenSSLContextFactory(keyfile, certfile) site = server.Site(resource.NoResource()) site.protocol = HTTPChannel reactor.listenSSL(port, site, ctx) reactor.run() Michael -- Michael Schlenker Software Architect CONTACT Software GmbH Tel.: +49 (421)

Re: [Twisted-Python] How to get the Python socket object for an TLS connection?

2012-12-12 Thread Michael Schlenker
only fixed 95% of the way if one needs to access getHandle() of the underlying TCPTransport. Are there any easy workarounds to get the socket handle anyway? Michael Am 12.12.2012 14:22, schrieb Michael Schlenker: > Hi, > > i use twisted for some volume streaming over fat pipes (10 GE)

[Twisted-Python] Aborting a connection attempt when HTTPS client detected on HTTP only server?

2013-02-11 Thread Michael Schlenker
would i have to hook into the connection setup of twisted.web and check the first few bytes for the signs of an SSL Handshake signature? Michael -- Michael Schlenker Software Architect CONTACT Software GmbH Tel.: +49 (421) 20153-80 Wiener Straße 1-3 Fax:+49 (421) 20153

Re: [Twisted-Python] Aborting a connection attempt when HTTPS client detected on HTTP only server?

2013-02-28 Thread Michael Schlenker
Am 11.02.2013 15:51, schrieb Itamar Turner-Trauring: > > > On Mon, Feb 11, 2013 at 9:24 AM, Michael Schlenker <mailto:m...@contact.de>> wrote: > > Is there some pre-made solution, or would i have to hook into the > connection setup of twisted.web and check

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-12 Thread Michael Schlenker
ding not so much. But client side support for 100-continue is spotty, at least the python stdlib httplib client mishandles 100-continue requests in an attempt to work around Microsoft IIS strangeness. Michael -- Michael Schlenker Software Architect CONTACT Software GmbH

Re: [Twisted-Python] Importing reactor changes PATHs?

2014-05-26 Thread Michael Schlenker
t, 'twisted.internet import reactor' does just that, it loads its own copy of 'ssleay32.dll', and as your ctypes call does not specifiy an absolute path or sets up any activation context, you get the already loaded DLL. Michael -- Michael Schlenker Software Architect CONTAC