Re: [Twisted-Python] Enable pre-commit.ci for twisted/twisted

2021-07-15 Thread Jean-Paul Calderone
On Thu, Jul 15, 2021 at 10:26 AM Adi Roiban wrote: > Hi, > > As part of this PR https://github.com/twisted/twisted/pull/1619 Thomas > has requested to enable the https://pre-commit.ci service for > twisted/twisted repository > > The pre-commit.ci is kind of an auto-pilot for our pre-commit >

Re: [Twisted-Python] Twisted v21.2.0 breaks Crossbar.io

2021-03-03 Thread Jean-Paul Calderone
On Wed, Mar 3, 2021 at 3:08 AM Glyph wrote: > > On Mar 2, 2021, at 6:10 PM, Jean-Paul Calderone > wrote: > > Policy aside, this change doesn't seem like much of an improvement to me. > If I were to guess, I would guess the change was made to satisfy some check > Mypy is no

Re: [Twisted-Python] Twisted v21.2.0 breaks Crossbar.io

2021-03-02 Thread Jean-Paul Calderone
On Tue, Mar 2, 2021 at 3:09 PM Tobias Oberstein wrote: > Hi all, > > rgd Twisted v21.2.0, thanks a lot to all involved in this release! the > release, mypy, more py3, .. +1! really appreciated. > > now, fwiw, just wanted to let you know (sorry, too late) about a > regression with > >

Re: [Twisted-Python] Thread Cancelled

2021-01-25 Thread Jean-Paul Calderone
On Mon, Jan 25, 2021 at 5:14 PM Robert DiFalco wrote: > So I have a simple question from all this. Is there a twisted idiom I can > use so that deferred returned from a Klein route are not canceled if the > client resets the connection? It's fine if it's before I've gotten the > request body,

Re: [Twisted-Python] reactor for Linux io_uring

2021-01-05 Thread Jean-Paul Calderone
On Tue, Jan 5, 2021 at 6:49 AM Barry Scott wrote: > On Monday, 4 January 2021 04:01:42 GMT Ian Haywood wrote: > > In investigating async file I/O I came across this. In a nutshell it's > > the new epoll() > > > It's marginally more efficient although this is only apparent at very > > high loads.

Re: [Twisted-Python] Plan/Goal for GitHub Sponsors

2021-01-04 Thread Jean-Paul Calderone
On Sun, Jan 3, 2021 at 10:00 PM Ian Haywood wrote: > I think having a project coordinator as a *first* priority isn't a good > idea (not saying it isn't down the track) > > Currently there's little to coordinate as the core team aren't active in > planning or review. can the team be expanded ?

Re: [Twisted-Python] Plan/Goal for GitHub Sponsors

2021-01-03 Thread Jean-Paul Calderone
On Wed, Dec 23, 2020 at 4:41 PM Adi Roiban wrote: > Hi, > > I started a separate discussion to confirm the goal for a future > fundraising. > > Top priority - Pay someone to help with the review queue > Nice to have - Move server/services to Azure VM - We have at least $100 > monthly allowance

Re: [Twisted-Python] Upcoming Twisted Release

2020-12-28 Thread Jean-Paul Calderone
On Mon, Dec 28, 2020 at 6:13 AM Adi Roiban wrote: > >>> I plan to update the release documentation to make it clear that all >>> release blocker tichet >>> should have an owner and there are plans to fix the ticket in a maximum >>> of 2 weeks. >>> >>> Otherwise we risk to block the release

Re: [Twisted-Python] Upcoming Twisted Release

2020-12-27 Thread Jean-Paul Calderone
On Sun, Dec 27, 2020 at 6:59 PM Adi Roiban wrote: > Hi Craig, > > On Sun, 27 Dec 2020 at 20:10, Craig Rodrigues > wrote: > >> >> >> On Sat, Dec 26, 2020 at 3:50 PM Adi Roiban wrote: >> >>> Hi, >>> >>> I plan to act as a release manager for the next release and follow the >>> plan documented at

Re: [Twisted-Python] Current twisted dns client just doesn't work

2020-12-11 Thread Jean-Paul Calderone
On Fri, Dec 11, 2020 at 10:31 AM spam tam wrote: > Yes. I would like to replace ANY with A and requests. > I created pull request: https://github.com/twisted/twisted/pull/1488 > It's an easy solution. I just request for A records and if A doesn't > provide IP I create request. >

Re: [Twisted-Python] Unjellying and circular references?

2020-12-11 Thread Jean-Paul Calderone
On Fri, Dec 11, 2020 at 8:19 AM Jasper Phillips wrote: > I'm using perspective broker to transfer objects in a networked game, > which I'm having trouble unjellying -- the remote versions wind up with > dangling twisted.persisted.crefutil._Dereference instances, so don't match > the original

Re: [Twisted-Python] ClientFactory design

2020-11-30 Thread Jean-Paul Calderone
On Mon, Nov 30, 2020 at 6:48 AM Peter Westlake wrote: > I'm studying an SSH client implementation using Conch, and was surprised > to see that the ClientFactory subclass had a connect() method which calls > connectTCP. This isn't really a problem - the code works - but it seems > like an odd

Re: [Twisted-Python] Retry: Conch Issues

2020-09-25 Thread Jean-Paul Calderone
On Thu, Sep 24, 2020 at 8:54 PM Robert DiFalco wrote: > Why exactly is makeDirectory not firing any callbacks or errbacks and what > can I add at the Factory level to make it do so? > class MySSHClientFactory(SSHClientFactory): > def clientConnectionLost(self, connector, reason): >

Re: [Twisted-Python] doWrite on twisted.internet.tcp.Port

2020-09-11 Thread Jean-Paul Calderone
On Fri, Sep 11, 2020 at 1:34 PM wrote: > Hey guys, > > > > Last year I hit a condition discussed in this ticket: > https://twistedmatrix.com/trac/ticket/4759 for doWrite called on a > twisted.internet.tcp.Port. > > > > I ignored it at the time since it was just on Linux, and my main platform >

Re: [Twisted-Python] Management of PyPI maintainers (as related to qt5reactor)

2020-07-30 Thread Jean-Paul Calderone
On Thu, Jul 30, 2020 at 3:58 PM Kyle Altendorf wrote: > On 2020-07-30 14:10, Jean-Paul Calderone wrote: > > > > > So, if I've missed something, maybe you can help clarify. > > qt5reactor isn't particularly active and and my hope in it moving into > the Twisted organiza

Re: [Twisted-Python] Management of PyPI maintainers (as related to qt5reactor)

2020-07-30 Thread Jean-Paul Calderone
On Thu, Jul 30, 2020 at 10:34 AM Kyle Altendorf wrote: > Following up on: > https://github.com/twisted/qt5reactor/issues/50#issuecomment-658432478 > > qt5reactor has recently been moved into the Twisted organization on > GitHub. The intent is that being in an org will make it less likely > that

Re: [Twisted-Python] mypy integrated with CI for twisted

2020-06-24 Thread Jean-Paul Calderone
On Wed, Jun 24, 2020 at 12:44 AM Glyph wrote: > > > On Jun 23, 2020, at 5:34 AM, Adi Roiban wrote: > > Hi Craig, > > On Tue, 23 Jun 2020 at 00:36, Craig Rodrigues > wrote: > >> I have merged some more fixes for mypy to Twisted trunk branch. >> >> In trunk, you can run mypy with: >> >> *tox -e

Re: [Twisted-Python] twistedchecker now uses pylint >= 2.4.4, can we use type annotations in Twisted now?

2020-06-07 Thread Jean-Paul Calderone
On Sun, Jun 7, 2020 at 7:22 PM Craig Rodrigues wrote: > I have merged a few PR's to trunk which eliminate hundreds of errors > encountered with: > > > *tox -e mypy* > I think we can take several passes with more PR's to whack away all these > mypy errors, > and turn on mypy as part of the

Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-22 Thread Jean-Paul Calderone
create the object in one thread and then use it in another. Better to create and use it all in the same thread. Jean-Paul > > TS > > On Thu, May 21, 2020 at 10:20 PM Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > >> On Thu, May 21, 2020 at 3:56 PM Serey

Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Jean-Paul Calderone
n it)? Jean-Paul > > Thank you, > TS > > > On Thu, May 21, 2020 at 5:23 PM Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > >> On Thu, May 21, 2020 at 10:58 AM Sereysethy TOUCH < >> touch.sereyse...@gmail.com> wrote: >> >>> H

Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Jean-Paul Calderone
On Thu, May 21, 2020 at 10:58 AM Sereysethy TOUCH < touch.sereyse...@gmail.com> wrote: > Hello, > > I am developing a twisted app, and it runs as a service using twistd -y to > start the app. > I am having a problem of running a thread. I know it is not recommended to > use thread, but the

Re: [Twisted-Python] [RFC] Drop support for Python 3.5 sometime after May 2021?

2020-05-19 Thread Jean-Paul Calderone
On Tue, May 19, 2020 at 8:33 AM Barry Scott wrote: > On Monday, 18 May 2020 22:21:16 BST Tom Most wrote: > > > > > If looking improve process management in Twisted, I think that the > > lowest-hanging fruit is to watch children with pidfd, rather than reaping > > all children on SIGCHLD. This

Re: [Twisted-Python] unified filesystem API (was: SMB server component for twisted)

2020-05-19 Thread Jean-Paul Calderone
Is anyone going to mention twisted.vfs? On Tue, May 19, 2020 at 8:33 AM Barry Scott wrote: > On Saturday, 16 May 2020 02:14:57 BST Ian Haywood wrote: > > On 16/05/2020 10:55 am, Ian Haywood wrote: > > > On 15/05/2020 10:52 am, Glyph wrote: > > >> y 14, 2020, at 5:23 PM, Wilfredo Sánchez Vega >

Re: [Twisted-Python] how will twisted handle generator-based coroutines deprecation?

2020-05-06 Thread Jean-Paul Calderone
On Wed, May 6, 2020 at 11:44 AM Vladimir Chudyk wrote: > Looking at the docs I found that Generators-based coroutines, something > that twisted's inline callbacks depend a lot, will be deprecated soon by > the time python 3.10 is released. > > >

Re: [Twisted-Python] The Python 2.7 Plan

2019-12-11 Thread Jean-Paul Calderone
On Wed, Dec 11, 2019 at 4:06 PM Wilfredo Sánchez Vega wrote: > With Python 2.7 support dropping in a matter of weeks, I'd like to pick > up from hawkowl's thread back in March about Python 2.7 support for Twisted. > Despite the widely circulated January 1 2020 date, it seems that python-dev

Re: [Twisted-Python] Continued towncrier support?

2019-08-08 Thread Jean-Paul Calderone
On Thu, Aug 8, 2019 at 4:42 PM Sebastian Berg wrote: > Hi all, > > I am not sure that this is the right place, but if I understand > correctly towncrier grew out of twisted. For NumPy (and likely more of > the scientific python ecosystem), we are looking into alternatives to > create release

Re: [Twisted-Python] self.channel.writeHeaders(version, code, reason, headers)\nbuiltins.AttributeError: \'NoneType\' object has no attribute \'writeHeaders\'\

2019-08-05 Thread Jean-Paul Calderone
On Mon, Aug 5, 2019 at 2:15 PM Waqar Khan wrote: > False alarm. Seems like there are some sneaky conditions when I get the > error message. > Like before, I use to get notifyFinish error everytime. Now, it seems that > 6/10 times things are "clean" but then 4/10 times there are notifyFinish >

Re: [Twisted-Python] Getting nice logging outputs in py.test

2019-07-05 Thread Jean-Paul Calderone
On Fri, Jul 5, 2019 at 1:55 AM Chris Withers wrote: > On 04/07/2019 21:43, Jean-Paul Calderone wrote: > > How are you running the reactor in your pytest suites? I've not > found a > > sane way to do this and so would recommend sticking with trial, > crufty > >

Re: [Twisted-Python] Getting nice logging outputs in py.test

2019-07-04 Thread Jean-Paul Calderone
On Thu, Jul 4, 2019 at 1:50 PM Chris Withers wrote: > On 04/07/2019 14:39, Thomas Westfeld wrote: > > Dear all, > > > > I am having an issue with logging of my Twisted application. I am using > the new twisted.logger framework. The output produced by twist or twistd > when runnning my plugin is

Re: [Twisted-Python] Azure Pipelines

2019-06-21 Thread Jean-Paul Calderone
On Fri, Jun 21, 2019 at 12:05 PM Glyph wrote: > > > On Jun 21, 2019, at 6:39 AM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > Hello, > > I submitted ticket:9655 <https://twistedmatrix.com/trac/ticket/9655> / > PR#1155 <https://github

[Twisted-Python] Azure Pipelines

2019-06-21 Thread Jean-Paul Calderone
Hello, I submitted ticket:9655 / PR#1155 for review a bit over a week ago. It is suffering from a red mark on the CI report due to Azure Pipelines complaining there was some "communication" problem "with

Re: [Twisted-Python] Backward incompatible fixes to backward incompatible changes

2019-04-29 Thread Jean-Paul Calderone
On Thu, Apr 25, 2019 at 12:52 PM Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > Hello all, > > I'd like to discuss the project policy/process for dealing with incorrect > backward incompatibilities that end up released. > Considering the lack of interest in

[Twisted-Python] Backward incompatible fixes to backward incompatible changes

2019-04-25 Thread Jean-Paul Calderone
Hello all, I'd like to discuss the project policy/process for dealing with incorrect backward incompatibilities that end up released. As a case study, we could look at https://twistedmatrix.com/trac/ticket/9410 /

Re: [Twisted-Python] how to get extReceived call from SSHCommandClientEndpoint

2019-04-05 Thread Jean-Paul Calderone
On Fri, Apr 5, 2019 at 2:08 PM Sereysethy TOUCH wrote: > Hi Sean, > > Yes it is a method of SSHChannel, but when I read the source code, the > _CommandChannel only implements dataReceived which calls protocol's method > but it does not implement extReceived. > > When you suggest to call it like

Re: [Twisted-Python] why can't a callback be called with a deferred?

2019-02-27 Thread Jean-Paul Calderone
On Wed, Feb 27, 2019 at 10:07 AM Scott, Barry wrote: > > The code I have posted is the good version so it works and the assert > does not fire. My goal is to show what I assume is the correct way to code > a function that uses internal Deferred(), not give an example that breaks. > > This should

Re: [Twisted-Python] why can't a callback be called with a deferred?

2019-02-27 Thread Jean-Paul Calderone
On Wed, Feb 27, 2019 at 9:34 AM Scott, Barry wrote: > On Tuesday, 26 February 2019 06:34:28 GMT Glyph wrote: > > > On Feb 25, 2019, at 3:32 AM, Scott, Barry > > > wrote:> > > > On Tuesday, 19 February 2019 11:00:57 GMT Chris Withers wrote: > > >> Hi All, > > >> > > >> There's this assert: > >

Re: [Twisted-Python] asyncio.reactor.install()

2018-12-18 Thread Jean-Paul Calderone
On Tue, Dec 18, 2018 at 7:43 PM Jeff Grimmett wrote: > This pattern works: > > > > *from twisted.internet import wxreactorreactor = wxreactor.install()* > The fact that a reactor is returned by install is a bit of a mistake and is not really part of the interface of *install.* For whatever

Re: [Twisted-Python] Thread Consumption Problem in Daemon?

2018-11-19 Thread Jean-Paul Calderone
On Mon, Nov 19, 2018 at 8:26 AM Maarten ter Huurne wrote: > On maandag 19 november 2018 12:40:20 CET Darren Govoni wrote: > > Hi, > > I am using twisted to run my Flask app via WSGI like so. > > > > twistd --pidfile $PORT/pidfile -l $PORT/logfile -n web --port > > tcp:$PORT --wsgi my.app > >

Re: [Twisted-Python] "disconnecting properly" in tests still hangs on macOS

2018-11-14 Thread Jean-Paul Calderone
On Wed, Nov 14, 2018 at 3:50 AM Chris Withers wrote: > Right, so, I've been trying to get the technique in > https://jml.io/pages/how-to-disconnect-in-twisted-really.html to work > for me. > > No hating please, most of my testing in the past has involved hitting a > relational database, so

Re: [Twisted-Python] "blocking" on a response to a client

2018-11-06 Thread Jean-Paul Calderone
On Tue, Nov 6, 2018 at 6:42 AM Chris Withers wrote: > On 05/11/2018 18:32, meejah wrote: > > Chris Withers writes: > > > >> So, separate question: I have a client that's making a connection to a > >> websocket from a server. The client needs to send an "auth" message > >> once the websocket is

Re: [Twisted-Python] Issue with TLS failure modes

2018-09-05 Thread Jean-Paul Calderone
On Wed, Sep 5, 2018 at 9:40 AM Robert DiFalco wrote: > Is the timeout the only way to handle this kind of TLS handshake error? > It might be easier to answer your original question if you include a Short, Self Contained, Correct (Compilable), Example . Jean-Paul > Sent

Re: [Twisted-Python] Using twistd with -c option causes permission error

2018-08-29 Thread Jean-Paul Calderone
On Tue, Aug 28, 2018 at 5:54 AM Richard Shea wrote: > > With Apache the process starts as root, reads the key and then makes the > apache process run as a different, less powerful, user but I can't see how > you can do the equivalent for twistd ? Am I overlooking something ? > > twistd has

[Twisted-Python] [ANN] txkube 0.3.0

2018-08-08 Thread Jean-Paul Calderone
org/pypi> You can contribute to its development on GitHub <https://github.com/LeastAuthority/txkube>. Thanks to Least Authority TFA GmbH <https://leastauthority.com/> for sponsoring this development and to Craig Rodrigues for his efforts on Python 3 porting work. Jean-Paul Calde

Re: [Twisted-Python] Twistedmatrix.com: scheduled maintenance July 18th

2018-07-13 Thread Jean-Paul Calderone
On Fri, Jul 13, 2018 at 4:27 AM Evilham wrote: > Am 13.07.2018 um 08:35 schrieb Glyph: > >> DNS could be pointed at an S3-backed website to serve a maintenance > >> message, at least. Not optimal, but better than ECONNREFUSED I would > >> think. I'd be happy to set this up and foot the bill -

Re: [Twisted-Python] Twistedmatrix.com: scheduled maintenance July 18th

2018-07-12 Thread Jean-Paul Calderone
On Thu, Jul 12, 2018 at 10:29 AM Adi Roiban wrote: > On Thu, 12 Jul 2018 at 12:57, Jean-Paul Calderone > wrote: > > > > On Wed, Jul 11, 2018 at 11:14 PM Mark Williams wrote: > >> > >> Note that this is the minimum maintenance necessary to keep > tw

Re: [Twisted-Python] Twistedmatrix.com: scheduled maintenance July 18th

2018-07-12 Thread Jean-Paul Calderone
On Wed, Jul 11, 2018 at 11:14 PM Mark Williams wrote: > Hello, > > The server that hosts twistedmatrix.com will be down for maintenance on > Wednesday July 18th. Our hosting company, Tummy.com, will be increasing > the size of the /boot partition to accommodate the larger kernels typical > of

[Twisted-Python] subunitreporter 18.7.5

2018-07-09 Thread Jean-Paul Calderone
Hello all, I'm happy to announce a new project, subunitreporter , which provides a reporter plugin for Trial which emits subunit v2 output. Twisted includes a subunit v1 reporter for Trial. However, the v1 output format must generally be converted to

Re: [Twisted-Python] Strategy for finding source of unhandled error in Deferred

2018-03-26 Thread Jean-Paul Calderone
On Mon, Mar 26, 2018 at 10:47 AM, Barry Scott <barry.sc...@forcepoint.com> wrote: > On Sunday, 18 March 2018 15:23:58 BST Jean-Paul Calderone wrote: > > > > Try this: > > > > from twisted.internet.defer import setDebugging > > setDebuggin

Re: [Twisted-Python] Problem with osx10.10-py2.7 builder

2018-03-26 Thread Jean-Paul Calderone
On Mon, Mar 26, 2018 at 2:58 AM, Glyph wrote: > Alternately... > > The reason we're doing this at all is that Travis's macOS situation was > pretty dismal when we last tried it. But then, the graphs on > https://www.traviscistatus.com at the time matched that

Re: [Twisted-Python] Strategy for finding source of unhandled error in Deferred

2018-03-18 Thread Jean-Paul Calderone
On Sun, Mar 18, 2018 at 11:21 AM, Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > On Sun, Mar 18, 2018 at 11:04 AM, Alex Railean <ralie...@gmail.com> wrote: > >> Hello, >> >> I have inherited a misbehaving system and am trying to troubleshoot it. &g

Re: [Twisted-Python] Strategy for finding source of unhandled error in Deferred

2018-03-18 Thread Jean-Paul Calderone
On Sun, Mar 18, 2018 at 11:04 AM, Alex Railean wrote: > Hello, > > I have inherited a misbehaving system and am trying to troubleshoot it. > The code > is not documented and I cannot produce a minimal working example that > illustrates > the problem yet, as I don't know which

Re: [Twisted-Python] List of required builds before a merge

2018-03-13 Thread Jean-Paul Calderone
On Tue, Mar 13, 2018 at 9:36 AM, Adi Roiban wrote: > We can try Circle-CI. > They don't offer any free versions. Even for open source. > When I did the initial work for Twisted with Travis and Appveyor I > contacted Circle-CI to see if we can get a discount. > > They offered OSX

Re: [Twisted-Python] Waiting for a contended resource

2018-03-12 Thread Jean-Paul Calderone
On Mon, Mar 12, 2018 at 3:52 PM, Ilya Skriblovsky wrote: > Hi, Richard, > > I've used class like this to cache the result of Expensive Calculation: > > class DeferredCache: > pending = None > result = None > failure = None > > def __init__(self,

Re: [Twisted-Python] List of required builds before a merge

2018-03-12 Thread Jean-Paul Calderone
On Mon, Mar 12, 2018 at 7:59 AM, Adi Roiban wrote: > Hi, > > It is not clear to me what builders need to pass before we can merge > something. > > I expect that all supported "platforms" need to pass, but it is not > clear what are the currently supported platforms. > > We have

Re: [Twisted-Python] Unhandled exceptions and observability

2017-12-28 Thread Jean-Paul Calderone
On Wed, Dec 27, 2017 at 11:18 PM, Svein Seldal wrote: > Hi > > > I'm not sure how to write this email, but please let me try. I'd like to > address something that I see as a limitation in Twisted. It might be that > my use case is odd or that I'm outside the scope of Twisted,

[Twisted-Python] [ANN] txaws 0.5.0

2017-12-27 Thread Jean-Paul Calderone
Hello all, I'm pleased to announce the release of txAWS 0.5.0. txAWS is a library for interacting with Amazon Web Services (AWS) using Twisted. You can download the release from PyPI . Since the last release, the following enhancements have been made:

Re: [Twisted-Python] Accepting/merging patches for unsupported platforms without CI

2017-11-26 Thread Jean-Paul Calderone
On Sun, Nov 26, 2017 at 5:30 PM, Glyph wrote: > > > Quite often—as I believe is the case for the patch you’re referring to > here—patches are adjusting behaviors which would be difficult to cleanly > integration-test on the platform in question anyway, and the

Re: [Twisted-Python] COMMERCIAL:Re: Clarification or pausing a consumer

2017-10-23 Thread Jean-Paul Calderone
On Mon, Oct 23, 2017 at 8:10 AM, Barry Scott <barry.sc...@forcepoint.com> wrote: > On Saturday, 14 October 2017 07:44:12 BST Glyph wrote: > > > On Oct 13, 2017, at 5:47 PM, Jean-Paul Calderone > > > <exar...@twistedmatrix.com> wrote: > > > > >

Re: [Twisted-Python] Clarification or pausing a consumer

2017-10-13 Thread Jean-Paul Calderone
On Fri, Oct 13, 2017 at 8:29 AM, Barry Scott wrote: > I have a app that needs to send data as an http response. But the data is > produced slowly. More slowly then the time taken to transmit it. > > The consumer keeps calling resumeProducing, but there is no data to

Re: [Twisted-Python] HTTPS reverse proxy using twistd, twist, or twisted.web?

2017-10-10 Thread Jean-Paul Calderone
On Tue, Oct 10, 2017 at 3:17 PM, Craig Rodrigues wrote: > Hi, > > Can someone give me a short snippet for how to set > up a HTTPS reverse proxy using twistd, twist, or twisted.web ? > > This requires CONNECT support in the Twisted Web server. Has anyone implemented this

Re: [Twisted-Python] How to correctly run Sqlite with Twisted?

2017-09-19 Thread Jean-Paul Calderone
On Tue, Sep 19, 2017 at 4:59 PM, Goffi wrote: > Hello, > > I'm using Sqlite3 module through Twisted's enterpirse.adbapi, I create the > ConnectionPool instance like this: > >self.dbpool = ConnectionPool("sqlite3", db_filename, > check_same_thread=False) > > You can see the

Re: [Twisted-Python] Forcing Twisted / Klein to use HTTPS

2017-08-30 Thread Jean-Paul Calderone
On Wed, Aug 30, 2017 at 11:36 AM, Chris Norman wrote: > Hi all, > > I'm trying to force Klein to use HTTPS, and so far I have a custom error > handler which redirects the user to the HTTPs version of the page via a > check_secure function which takes the request

Re: [Twisted-Python] Twisted 17.5 vs txkube

2017-08-30 Thread Jean-Paul Calderone
I hope that won't discourage anyone else from taking a look. On Wed, Aug 30, 2017 at 8:09 AM, Amber Hawkie Brown < hawk...@atleastfornow.net> wrote: > > On 30 Aug 2017, at 22:05, Jean-Paul Calderone <exar...@twistedmatrix.com> > wrote: > > Hello, > > Sadly the

[Twisted-Python] Twisted 17.5 vs txkube

2017-08-30 Thread Jean-Paul Calderone
Hello, Sadly the txkube test suite is still pretty busted against Twisted 17.5. It was broken for a long time with Twisted 17.1 as well. I'm not sure if these are exactly the same problems or not but they look somewhat related. https://travis-ci.org/LeastAuthority/txkube/builds/269920984 If

Re: [Twisted-Python] Is there a nice way to write transport-agnostic protocols and servers/clients?

2017-08-17 Thread Jean-Paul Calderone
On Thu, Aug 17, 2017 at 8:52 AM, Kevin Conway wrote: > > What UDP endpoint? There isn't one. When I say "endpoint" I'm talking > about the Twisted API collection that centers around > *twisted.internet.endpoints*. Is that what you're talking about? > > Oh... Yes,

Re: [Twisted-Python] Is there a nice way to write transport-agnostic protocols and servers/clients?

2017-08-17 Thread Jean-Paul Calderone
On Thu, Aug 17, 2017 at 1:35 AM, Kevin Conway wrote: > > There is no datagram endpoints API as yet, though (see #4471), only > stream endpoints. > > I've read through the ticket. What I still don't understand is the > significance of this of this? Other than some

Re: [Twisted-Python] Is there a nice way to write transport-agnostic protocols and servers/clients?

2017-08-16 Thread Jean-Paul Calderone
On Wed, Aug 16, 2017 at 9:59 AM, Tristan Seligmann wrote: > On Wed, 16 Aug 2017 at 15:28 Kevin Conway > wrote: > >> Maybe I misunderstand the issue, but I believe the Endpoints API solves >> for this.

Re: [Twisted-Python] Is there a nice way to write transport-agnostic protocols and servers/clients?

2017-08-16 Thread Jean-Paul Calderone
On Wed, Aug 16, 2017 at 7:53 AM, Jarosław Fedewicz < jaroslaw.fedew...@gmail.com> wrote: > This makes a perfect sense. (I ended up implementing it in this sorta way, > but the other way around: it was a primarily-datagram protocol that could > use TCP as a transport, provided there is appropriate

Re: [Twisted-Python] Chunked decoding missing from HTTPClient?

2017-08-15 Thread Jean-Paul Calderone
On Tue, Aug 15, 2017 at 8:43 AM, Barry Scott wrote: > I see that HTTPChannel knows about chunking and indeed works well. > > However shouldn't HTTPClient also support chunking? > Or Am I missing something to get chunking working for the response from a > server? > >

Re: [Twisted-Python] 17.5.0 _newtls.pu:207 loseConnection signature problem

2017-08-11 Thread Jean-Paul Calderone
On Fri, Aug 11, 2017 at 6:46 AM, Barry Scott wrote: > I porting some code to latest twisted and I;m seeing the old code expects > to > call loseConenction with a reason. > This code makes the mistake of treating a peculiarity of a particular implementation of an

Re: [Twisted-Python] [ANN] txAWS 0.4.0

2017-07-13 Thread Jean-Paul Calderone
On Thu, Jul 13, 2017 at 3:58 AM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jul 11, 2017, at 3:41 AM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > Do you see particular similarities between boto/boto3 and txAWS? Do you > think t

Re: [Twisted-Python] [ANN] txAWS 0.4.0

2017-07-04 Thread Jean-Paul Calderone
On Tue, Jul 4, 2017 at 4:08 PM, Glyph <gl...@twistedmatrix.com> wrote: > > > On Jul 4, 2017, at 4:30 AM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > > > Hello all, > > > > I'm pleased to announce the release of txAWS 0.4.0. txAW

[Twisted-Python] [ANN] txAWS 0.4.0

2017-07-04 Thread Jean-Paul Calderone
orts loading different sets of credentials via AWS_PROFILE. (#54) Thanks to everyone who contributed and to Least Authority Enterprises <https://leastauthority.com/> for sponsoring my work on this release. Jean-Paul Calderone ___ Twisted-Python ma

Re: [Twisted-Python] Cannot access raise ticket in Issue Tracker

2017-06-19 Thread Jean-Paul Calderone
On Mon, Jun 19, 2017 at 4:33 PM, David Worenklein wrote: > Hi, > > > > I’m trying to post a documentation bug (ReverseProxyResource says the path > parameter type is str, but actually it needs to be bytes) > > > > I’m trying to access http://twistedmatrix.com/trac/newticket

[Twisted-Python] Custom log "files" with twisted.logger

2017-06-14 Thread Jean-Paul Calderone
Hello, I would like to be able to send events from the new logging system (twisted.logger) to a remote log collection system. If I'm using twist then it seems options for configuring this part of logging are limited. The choices appear to be logging to stdout, stdout, or a file on the

[Twisted-Python] [ANN] txkube 0.2.0

2017-06-05 Thread Jean-Paul Calderone
Hello all, I'm pleased to announce a new release of txkube, a Twisted-based library for interacting with Kubernetes using the HTTP API. The big news for this release is compatibility with Kubernetes 1.6 and an easier path to compatibility with future Kubernetes releases. This release also

Re: [Twisted-Python] Twisted 17.5.0rc2 RC Announcement

2017-05-29 Thread Jean-Paul Calderone
On Mon, May 29, 2017 at 3:27 PM, Glyph <gl...@twistedmatrix.com> wrote: > > On May 26, 2017, at 4:38 AM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > Some of the txkube problems have been resolved but either not entirely or > some new ones have been

Re: [Twisted-Python] Twisted 17.5.0rc2 RC Announcement

2017-05-26 Thread Jean-Paul Calderone
On Fri, May 26, 2017 at 2:35 AM, Amber Brown wrote: > Hi everyone, > > Fresh from PyCon US, comes a 17.5 prerelease. Fancy things in this release: > > - twisted.python.url has been spun out into the new 'hyperlink' package; > importing twisted.python.url is now a

Re: [Twisted-Python] Welcome to the "Twisted-Python" mailing list

2017-04-19 Thread Jean-Paul Calderone
On Wed, Apr 19, 2017 at 4:11 PM, Adam Wozniak wrote: > This is a problem in twisted. Buldbot uses twisted. > > To make buildbot git polling work for me, I had to make the change below. > > Based on zturner comment #17 in > http://trac.buildbot.net/ticket/2936 I left

Re: [Twisted-Python] [ANN] kubetop 17.4.17.1

2017-04-18 Thread Jean-Paul Calderone
On Mon, Apr 17, 2017 at 9:44 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Apr 17, 2017, at 10:24 AM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > Hello all, > > I'm pleased to announce the initial release of kubetop, a command-

[Twisted-Python] [ANN] kubetop 17.4.17.1

2017-04-17 Thread Jean-Paul Calderone
tps://pypi.python.org/pypi/kubetop> and GitHub <https://github.com/LeastAuthority/kubetop>. Install it in the usual way: pip install kubetop Thanks to Least Authority Enterprises <https://leastauthority.com/> for sponsoring this development. Jean-Paul Calderone htt

Re: [Twisted-Python] Beginner

2017-04-12 Thread Jean-Paul Calderone
On Wed, Apr 12, 2017 at 9:43 AM, Chris Norman <chris.norm...@googlemail.com> wrote: > > On 12/04/2017 14:41, Jean-Paul Calderone wrote: > > On Wed, Apr 12, 2017 at 9:37 AM, Chris Norman < > chris.norm...@googlemail.com> wrote: > >> >> >> On 12/0

Re: [Twisted-Python] Beginner

2017-04-12 Thread Jean-Paul Calderone
On Wed, Apr 12, 2017 at 9:37 AM, Chris Norman wrote: > > > On 12/04/2017 14:21, catch me wrote: > > Hey! I don't know I should ask this question or not but as a beginner I > have to ask. > I have just started learn python network programming and fortunately found >

Re: [Twisted-Python] [ANN] txkube 0.1.0

2017-04-11 Thread Jean-Paul Calderone
On Tue, Apr 11, 2017 at 1:15 AM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Apr 10, 2017, at 11:11 AM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > Hello all, > > I'm pleased to announce the first release of txkube, a Twiste

[Twisted-Python] [ANN] txkube 0.1.0

2017-04-10 Thread Jean-Paul Calderone
pi.python.org/pypi>. You can contribute to its development on GitHub <https://github.com/LeastAuthority/txkube>. Thanks to Least Authority Enterprises <https://leastauthority.com/> for sponsoring this development. Jean-Paul Calderone http://as.ynchrono.us/ ___

[Twisted-Python] [ANN] txAWS 0.3.0

2017-04-10 Thread Jean-Paul Calderone
GitHub for issues and source control <https://github.com/twisted/txaws> (https://github.com/twisted/txaws). Since the last release, the following enhancements have been made: - Jean-Paul Calderone added basic Route53 support. - Mark Williams add Auth v4, now used by the S3 and Rou

Re: [Twisted-Python] HTTP Agent persistent connections not closed for some HTTPS sites

2017-03-10 Thread Jean-Paul Calderone
On Fri, Mar 10, 2017 at 3:26 AM, Cory Benfield <c...@lukasa.co.uk> wrote: > > On 9 Mar 2017, at 22:01, Jean-Paul Calderone <exar...@twistedmatrix.com> > wrote: > > Run the server with TLSMemoryBIOProtocol and use the transport's > pauseProducing method before you

Re: [Twisted-Python] HTTP Agent persistent connections not closed for some HTTPS sites

2017-03-09 Thread Jean-Paul Calderone
On Thu, Mar 9, 2017 at 3:40 PM, Adi Roiban wrote: > On 7 March 2017 at 09:31, Cory Benfield wrote: > > > > On 6 Mar 2017, at 09:05, Adi Roiban wrote: > > > > I am not sure about which code are we talking here. > > The specific

[Twisted-Python] non-merge commits to trunk & "review" keyword

2017-03-06 Thread Jean-Paul Calderone
Hello, GitHub apparently allows fast-forward merges to trunk. Here's an example of one: https://github.com/twisted/twisted/pull/730 This doesn't seem like a good thing. - The ticket is still open - There is no merge commit - There is no merge commit message - There are non-merge

Re: [Twisted-Python] Minor fixes in the “Customizing twistd logging” section

2017-03-03 Thread Jean-Paul Calderone
On Fri, Mar 3, 2017 at 2:57 AM, Роман Мещеряков wrote: > Hi everyone, > > > *On the documentation web page > https://twistedmatrix.com/documents/current/core/howto/application.html > > in the

Re: [Twisted-Python] Test coverage requirements

2017-02-27 Thread Jean-Paul Calderone
On Mon, Feb 27, 2017 at 6:00 PM, Tristan Seligmann wrote: > On Mon, 27 Feb 2017 at 21:54 Glyph Lefkowitz > wrote: > >> That said, it has been *improving* and if it keeps improving at the rate >> it has been, I expect that we'd be able to put

Re: [Twisted-Python] trac spam

2017-02-27 Thread Jean-Paul Calderone
On Mon, Feb 27, 2017 at 8:41 AM, Adi Roiban <a...@roiban.ro> wrote: > On 27 February 2017 at 12:59, Jean-Paul Calderone > <exar...@twistedmatrix.com> wrote: > > Tickets 9058 and 9059 are spam. I would have cleaned them up but it's > not > > clear from the UI

[Twisted-Python] trac spam

2017-02-27 Thread Jean-Paul Calderone
Tickets 9058 and 9059 are spam. I would have cleaned them up but it's not clear from the UI how (actually I clicked a "delete" button in the UI but the tickets are there so I guess "delete" doesn't mean what I think). Jean-Paul ___ Twisted-Python

[Twisted-Python] Test coverage requirements

2017-02-26 Thread Jean-Paul Calderone
Hi, I'm looking at some recent trunk commits (also, others) that seem to have non-trivial untested

Re: [Twisted-Python] Python3 twistd daemon for Ubuntu 14.04 alternatives

2017-02-22 Thread Jean-Paul Calderone
On Wed, Feb 22, 2017 at 7:08 AM, Phil Mayers wrote: > On 22/02/17 11:12, Glyph Lefkowitz wrote: > > I'm tempted to launch into a diatribe about namespacing, containers, and >> application isolation generally, but before I do - why is it that you >> /want/ to use the

Re: [Twisted-Python] How to restart Twisted service in-process

2017-02-18 Thread Jean-Paul Calderone
On Sat, Feb 18, 2017 at 2:25 PM, Glyph Lefkowitz wrote: > > On Feb 2, 2017, at 1:17 AM, Роман Мещеряков > wrote: > > *Hello everyone! I wrote Twisted-based TCP server which is capable of > running in several relatively different modes. When

Re: [Twisted-Python] Twisted 17.1 Release Announcement

2017-02-17 Thread Jean-Paul Calderone
On Thu, Feb 16, 2017 at 12:47 AM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Feb 15, 2017, at 6:51 AM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > It doesn't sound crazy to say "treq 16.12.0 test suite should be required > to pa

[Twisted-Python] Trial & Hypothesis

2017-02-15 Thread Jean-Paul Calderone
Hey all, A few folks had an IRC discussion about improving the trial & hypothesis experience. I took some notes and thought I'd share them here in case anyone else is interested. We're planning to pick up the discussion next Wednesday. Feel free to join in #twisted-dev on Freenode (we might

Re: [Twisted-Python] Twisted 17.1 Release Announcement

2017-02-15 Thread Jean-Paul Calderone
On Wed, Feb 15, 2017 at 9:11 AM, Tristan Seligmann <mithra...@mithrandi.net> wrote: > On Wed, 15 Feb 2017 at 15:23 Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > >> >> I wonder about the details of how treq's failures went unnoticed. Is >

Re: [Twisted-Python] Twisted 17.1 Release Announcement

2017-02-15 Thread Jean-Paul Calderone
On Wed, Feb 15, 2017 at 3:39 AM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Feb 11, 2017, at 5:54 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > On Sat, Feb 11, 2017 at 5:03 AM, Amber Hawkie Brown < > hawk...@atleastfornow.net&

  1   2   3   >