[Twisted-Python] twisted.web HTTPS client certificate

2021-07-12 Thread Ian Haywood
I am trying to work out how to retrieve on the server a X.509 certificate presented by the HTTPS client.  This code tries to tell me the transport has no peer certificate. same error when I use wget as a client so I think my problem is in the server code. I'm using self-signed certificates A

Re: [Twisted-Python] reactor for Linux io_uring

2021-03-12 Thread Ian Haywood
On 12/03/2021 8:29 pm, Tobias Oberstein wrote: since with io_uring the queue/ring to append to never blocks for writes, that buffering in twisted would lead to double buffering (as the ring already buffers) then, io_uring follows a completion IO model (as IOCP). quite different from the "read

Re: [Twisted-Python] reactor for Linux io_uring

2021-03-12 Thread Ian Haywood
On 12/03/2021 7:21 pm, Tobias Oberstein wrote: sorry, I missed the beginning of the thread / discussion: are you working on a new, full Twisted reactor on top of io_uring? and async filesystem is "just" one part / additional effort in that? the advantage of io_uring is being able to combine fi

Re: [Twisted-Python] reactor for Linux io_uring

2021-03-11 Thread Ian Haywood
On 11/01/2021 8:26 pm, Glyph wrote: seems somewhat irrelevant to the "asynchronous filesystem" part of this PR - do you think you could do a smaller version of this which decouples it from smb and ctypes? but yes both can be spun out easily, so it's just the interface and a plain portable threa

Re: [Twisted-Python] reactor for Linux io_uring

2021-01-10 Thread Ian Haywood
On 8/01/2021 7:23 am, Glyph wrote: The mess of ctypes stuff unclear what you mean: either the aio implementation or statx.py seems somewhat irrelevant to the "asynchronous filesystem" part of this PR - do you think you could do a smaller version of this which decouples it from smb and ctyp

Re: [Twisted-Python] reactor for Linux io_uring

2021-01-07 Thread Ian Haywood
On 6/01/2021 1:04 am, Adi Roiban wrote: On Tue, 5 Jan 2021 at 13:44, Jean-Paul Calderone mailto:exar...@twistedmatrix.com>> wrote: On Tue, Jan 5, 2021 at 6:49 AM Barry Scott mailto:barry.sc...@forcepoint.com>> wrote: What threads? Why do you call out file FDs different fro

Re: [Twisted-Python] reactor for Linux io_uring

2021-01-05 Thread Ian Haywood
over engineered but don't exactly break new ground in a CS sense. On 6/01/2021 11:35 am, Ian Haywood wrote: Proprietary protocols like SMB tend to be over-eng On 4/01/2021 4:41 pm, Glyph wrote: I suspect that this may require somewhat less... cognitive surface area than your

Re: [Twisted-Python] reactor for Linux io_uring

2021-01-05 Thread Ian Haywood
to it that I'll have enough capacity to get back to it myself :) -g On Jan 3, 2021, at 8:01 PM, 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

[Twisted-Python] reactor for Linux io_uring

2021-01-03 Thread Ian Haywood
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. What's more interesting is that io_uring accepts files as well as network/pipe handles: avoiding the need for threads. Here

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

2021-01-03 Thread Ian Haywood
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 ? (I'm not angling for a role myself) Ian On 4/01/2021 11

Re: [Twisted-Python] Participating to GitHub Sponsors

2020-12-15 Thread Ian Haywood
No objection, but any plans for the money? I'd ask for more reviewers, I'd like to contribute more to twisted but there's little point without access to code review in a reasonable timeframe. On 16/12/2020 11:56 am, Adi Roiban wrote: Hi, Does anyone have anything against applying so that Twis

Re: [Twisted-Python] Mailgun Email Service Replacement Proposal

2020-10-03 Thread Ian Haywood
On 3/10/2020 4:35 pm, Glyph wrote: Basically, a signing / authenticating MX relay. Anyone interested in attempting to write such a thing with Twisted? :) I'm happy to it for  "fee": review of my SMB patches Ian ___ Twisted-Python mailing list Twi

[Twisted-Python] smb component progress

2020-09-08 Thread Ian Haywood
I have continued to work slowly on this project. Named pipes are supported, the samba client can connect and list available shares. i am currently working on a vfs layer using deferToThread to provide asynchronous file access  I have tried to keep the code divided into logically separate chun

Re: [Twisted-Python] composition VS. inheritance

2020-07-02 Thread Ian Haywood
On 1/07/2020 1:41 am, Barry Scott wrote: On Saturday, 27 June 2020 07:47:14 BST Ian Haywood wrote: I've been told in code review to use composition instead of inheritance, which is fine in a general sense but I have difficulty applying to twisted-specific task thanks for these poi

[Twisted-Python] composition VS. inheritance

2020-06-26 Thread Ian Haywood
In smb I have a SMBPacketReceiver that inherits from t.i.p.Protocol, it breaks the incoming TCP stream into logical packets (the analogue of LineReceiver in line-based protocols). I then subclass SMBPacketReceiver to SMBProtocol which does a lot of the "heavy lifting" analyzing incoming packet

[Twisted-Python] new code: 3.5 or 3.6?

2020-06-25 Thread Ian Haywood
I've followed the discussion re 3.6 and type annotations, but evidently not closely enough when writing new code for twisted today, can we use 3.6 features or is 3.5 still required? (it's actually a library feature enum.IntFlag I'm curious about, not type annotations) Ian __

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

2020-05-15 Thread Ian Haywood
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 <mailto:wsanc...@wsanchez.net>   I think it's great to get an SMB implementation in the Twisted org, but why would we even consider adding something l

Re: [Twisted-Python] SMB server component for twisted

2020-05-15 Thread Ian Haywood
On 15/05/2020 10:52 am, Glyph wrote: y 14, 2020, at 5:23 PM, Wilfredo Sánchez Vega   I think it's great to get an SMB implementation in the Twisted org, but why would we even consider adding something like this to the main Twisted project? The advantage of twi

Re: [Twisted-Python] SMB server component for twisted

2020-05-08 Thread Ian Haywood
On 7/05/2020 5:48 pm, Glyph wrote: If you want to include it in Twisted itself, your best bet is to actually develop it /within/ twisted, as a series of small contributions, rather than as one gigantic one-shot one.  Contributions over, say, 400 lines, take exponentially longer to review. So

[Twisted-Python] SMB server component for twisted

2020-05-04 Thread Ian Haywood
I have begun work on a SMB (Server Message Block; Windows filesharing) server protocol for twisted. Work so far is here: https://github.com/ihaywood3/twsmb I'm looking for any advice particularly around what I should be doing so this code is suitable for inclusion in twisted. Ian Ha