Issue #248: Add closing read-only property to transports#257
Issue #248: Add closing read-only property to transports#257vstinner wants to merge 1 commit intopython:masterfrom
Conversation
vstinner
commented
Jul 20, 2015
- Disallow write() on closing transports
- Disallow aslo calling pause_writing() and resume_writing() on StreamReaderProtocol if the transport is closing
* Disallow write() on closing transports * Disallow aslo calling pause_writing() and resume_writing() on StreamReaderProtocol if the transport is closing
|
LGTM |
There was a problem hiding this comment.
I think you should call super().connection_made(transport) here.
|
So honestly this worries me, so please don't commit yet. FWIW I do think it's fine if closing remains set after the transport is closed. |
|
I really don't like that |
|
I was hit by this too -- I need to implement |
|
Can you two agree in whether it should be spelled t.closing or t.closing()
or t.is_closing()? I have no objection against adding it. Make sure to
update the spec of the Transport class.
|
|
And with a quick regex search |
|
Sounds fine.
|
|
Sorry for offtopic but would you, guys, take a look on http://bugs.python.org/issue25074 |
If nobody looks at it before Monday I can review it. |
|
So, I think we need a new PR that *just * adds is_closing() to the |
|
Please see PR #291. Closing this one. |