#twisted-dev

/

      • itamarst has quit
      • garetjax has quit
      • khorn joined the channel
      • -- BotBot disconnected, possible missing messages --
      • [c__c] joined the channel
      • isis joined the channel
      • daMaestro joined the channel
      • itamar has quit
      • kenaan
        Tickets pending review: https://tm.tl/#9299, #9305, #9210, #9337, #9340, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #7495
      • rthille-ciena1 joined the channel
      • jlitzingerdev joined the channel
      • jlitzingerdev
        In looking at a solution to 9333, I'm wondering is there value in a public format method that appends tracebacks (note that formatEvent does not)?
      • Or should such a method remain private for internal use. A related question is how often the raw formatters are used instead of observers
      • tos9 has quit
      • tos9 joined the channel
      • adiroiban has quit
      • adiroiban joined the channel
      • jlitzingerdev has quit
      • garetjax joined the channel
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15markrwilliams pushed 1 new commit to 067033-pyopenssl-ecdh: 02https://git.io/vbfdu
      • NOTICE: 13twisted/067033-pyopenssl-ecdh 14393d9b6 15Mark Williams: Merge branch 'trunk' into 7033-pyopenssl-ecdh
      • KenaanX has left the channel
      • kenaan
        Tickets pending review: https://tm.tl/#9299, #9305, #9210, #9337, #9340, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #7495
      • garetjax has quit
      • garetjax joined the channel
      • garetjax has quit
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15markrwilliams pushed 1 new commit to 06trunk: 02https://git.io/vbfN8
      • NOTICE: 13twisted/06trunk 14a2e8623 15Mark Williams: Merge pull request #928 from twisted/7033-pyopenssl-ecdh...
      • KenaanX has left the channel
      • Mark Williams <mrw@enotuniq.org>; closed <https://tm.tl/#7033>; - Use PyOpenSSL's ECDHE API
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15markrwilliams created 069210-ecdh-selection at 14ea07364 (+0 new commits): 02https://git.io/vbfN7
      • KenaanX has left the channel
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15markrwilliams 04deleted 069210-ecdh-selection at 14ea07364: 02https://git.io/vbfAr
      • KenaanX has left the channel
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15markrwilliams opened pull request #935: 9210 ecdh selection 1 (06trunk...069210-ecdh-selection-1) 02https://git.io/vbfA9
      • KenaanX has left the channel
      • garetjax joined the channel
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15markrwilliams pushed 1 new commit to 069210-ecdh-selection-1: 02https://git.io/vbfp3
      • NOTICE: 13twisted/069210-ecdh-selection-1 14883d748 15Mark Williams: Skip ECDHE integration test with OpenSSLs >= 1.0.2.
      • KenaanX has left the channel
      • markrwilliams reviewed <https://tm.tl/#9210>; - TLS handshake failure with OpenSSL 1.1.0f (unassigned)
      • evil_gordita joined the channel
      • markrwilliams submitted <https://tm.tl/#9210>; - TLS handshake failure with OpenSSL 1.1.0f (unassigned) for review
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15rodrigc pushed 2 new commits to 069303-rodrigc-shellcomp-py3: 02https://git.io/vbfhB
      • NOTICE: 13twisted/069303-rodrigc-shellcomp-py3 149016100 15Craig Rodrigues: Move check for unicode ioType into shellComplete.
      • NOTICE: 13twisted/069303-rodrigc-shellcomp-py3 146c52f7e 15Craig Rodrigues: Merge branch 'trunk' into 9303-rodrigc-shellcomp-py3
      • KenaanX has left the channel
      • garetjax has quit
      • garetjax joined the channel
      • garetjax has quit
      • garetjax joined the channel
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15rodrigc 04deleted 069303-rodrigc-shellcomp-py3 at 146c52f7e: 02https://git.io/vbJqc
      • KenaanX has left the channel
      • Craig Rodrigues <rodrigc@FreeBSD.org>; closed <https://tm.tl/#9303>; - Port twisted.python._shellcomp to Python 3
      • garetjax has quit
      • itamar joined the channel
      • new core enhancement https://tm.tl/#9343 by rodrigc: Add a toBytes() helper function
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15rodrigc created 069343-rodrigc-tobytes (+2 new commits): 02https://git.io/vbJcg
      • NOTICE: 13twisted/069343-rodrigc-tobytes 14ed23289 15Craig Rodrigues: Add a toBytes() function for converting unicode to bytes.
      • NOTICE: 13twisted/069343-rodrigc-tobytes 1444996d1 15Craig Rodrigues: Add tests for toBytes().
      • KenaanX has left the channel
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15rodrigc opened pull request #936: Add toBytes() helper method (06trunk...069343-rodrigc-tobytes) 02https://git.io/vbJCe
      • KenaanX has left the channel
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15rodrigc pushed 1 new commit to 069343-rodrigc-tobytes: 02https://git.io/vbJCq
      • NOTICE: 13twisted/069343-rodrigc-tobytes 1499bd953 15Craig Rodrigues: Add newsfragment
      • KenaanX has left the channel
      • rodrigc submitted <https://tm.tl/#9343>; - Add a toBytes() helper function (unassigned) for review
      • Tickets pending review: https://tm.tl/#9299, #9305, #9337, #9340, #9210, #9343, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #7495
      • clokep_tb joined the channel
      • itamarst joined the channel
      • exarkun has quit
      • exarkun joined the channel
      • moshez has quit
      • evil_gordita has quit
      • itamar has quit
      • garetjax joined the channel
      • garetjax has quit
      • Arfrever joined the channel
      • KenaanX joined the channel
      • NOTICE: [13twisted] 15rodrigc pushed 1 new commit to 068487-rodrigc-mailmail-py3-2: 02https://git.io/vbUe8
      • NOTICE: 13twisted/068487-rodrigc-mailmail-py3-2 142166345 15Craig Rodrigues: Skip correct test
      • KenaanX has left the channel
      • clokep_tb joined the channel
      • garetjax joined the channel
      • Tickets pending review: https://tm.tl/#9299, #9305, #9337, #9340, #9210, #9343, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #7495
      • garetjax has quit
      • epopt joined the channel
      • KenaanX joined the channel
      • NOTICE: [13klein] 15wsanchez pushed 2 new commits to 06master: 02https://git.io/vbUBe
      • NOTICE: 13klein/06master 14adc6341 15Jason Litzinger: Prefer unittest.mock but require mock for python < 3.3....
      • NOTICE: 13klein/06master 141f2bc3b 15Wilfredo Sánchez Vega: Merge pull request #221 from jlitzingerdev/166-use-unittest-mock...
      • KenaanX has left the channel
      • KenaanX joined the channel
      • NOTICE: [13klein] 15wsanchez pushed 1 new commit to 06headers: 02https://git.io/vbUBU
      • NOTICE: 13klein/06headers 148fea94f 15Wilfredo Sánchez Vega: Merge branch 'master' into headers
      • KenaanX has left the channel
      • garetjax joined the channel
      • runciter
        why does Twisted need to find out if the read side of a ProcessWriter pipe has been closed?
      • it looks like it's done to determine when a process has exited, but SIGCHLD should handle that
      • it seems dubious to me that twisted actually supports non-windows platforms that don't support SIGCHLD
      • exarkun
        SIGCHLD doesn't tell you which process has exited (mostly).
      • itamar joined the channel
      • Also ... You want to know if a process has closed its stdin so you can notify application code of that event.
      • Closed stdin is not the same event as process exited.
      • runciter
        exarkun: yes, SIGCHLD doesn't tell you what process has exited, but the traditional approach of calling waitpid(-1, &wstatus, WNOHANG) in a loop addresses that, right?
      • exarkun: also it's certainly true that stdin (or any of a process' readable file descriptors) is meaningfully different than a process exit, but the tradition there is to discover that the read side is closed by handling EPIPE on the next write
      • was the idea with ProcessWriter that twisted could do better with pipes than it can with sockets?
      • exarkun
        runciter: waiting for EPIPE definitely sucks
      • I don't see how it's better for pipes than for sockets
      • It's the same
      • Get the event when it happens, not after an arbitrary delay?
      • You don't have to wait for a bum write() on a socket
      • (I think I don't understand what you mean)
      • runciter
        exarkun: you're right, a socket will come up as readable, but you still have to be prepared to handle EPIPE
      • exarkun: reading ProcessWriter's source and The Linux Programming Interface's table on pipe behaviors, though, the write side of a pipe does not necessarily become readable when its read side is closed
      • exarkun
        Indeed. Isn't that why there's a function for detecting that behavior?
      • The bottom line is that child process management is a charlie foxtrot on Linux and you probably can't do better than a collection of hacks
      • We should try to keep the hacks in the reactor and out of application code
      • bbl
      • runciter
        exarkun: yes, there is a function that detects that. i am wondering if we can get rid of it, and in doing so eliminate the need for a new hack to handle https://twistedmatrix.com/trac/ticket/9323
      • exarkun: thanks for the input
      • i don't think we can given that everything in the last ~12 years expects childConnectionLost to get called as soon as a pipe is closed
      • exarkun has quit
      • cjwatson has quit
      • exarkun joined the channel
      • garetjax has quit
      • kenaan
        Tickets pending review: https://tm.tl/#9299, #9305, #9337, #9340, #9210, #9343, #8966 (the0id), #9100, #9118 (the0id), #4964 (jameshilliard), #9138, #9176, #7495
      • garetjax joined the channel
      • foom
      • runciter
        foom: oh, thanks!
      • garetjax has quit
      • foom
        I hated this code a decade ago. Good luck. =)
      • runciter
        foom: unix never forgets
      • foom
        Well, this is really self-inflicted wound in twisted, with polling for write before calling processEnded
      • Polling on the write pipe, that is.