Re: [Twisted-Python] Waiting for transports to close

2015-12-25 Thread Glyph Lefkowitz
> On Dec 19, 2015, at 5:01 AM, Chris Norman > wrote: > > Hello, > > On 17/12/2015 13:03, Glyph Lefkowitz wrote: >> >>> On Dec 17, 2015, at 4:56 AM, Chris Norman < >>> chris.norm...@googlemail.com >>> > wrote: >>> >>>

Re: [Twisted-Python] Waiting for transports to close

2015-12-19 Thread Chris Norman
Hello, On 17/12/2015 13:03, Glyph Lefkowitz wrote: On Dec 17, 2015, at 4:56 AM, Chris Norman mailto:chris.norm...@googlemail.com>> wrote: Hi, It's a MUD server, so players type in commands and receive textual responses. One of the admin commands is the ability to shutdown the server (or

Re: [Twisted-Python] Waiting for transports to close

2015-12-17 Thread Glyph Lefkowitz
> On Dec 17, 2015, at 4:56 AM, Chris Norman > wrote: > > Hi, > It's a MUD server, so players type in commands and receive textual responses. > > One of the admin commands is the ability to shutdown the server (or CTRL-C > might be pressed on the console). I'd like this action to notify all >

Re: [Twisted-Python] Waiting for transports to close

2015-12-17 Thread Chris Norman
Hi, It's a MUD server, so players type in commands and receive textual responses. One of the admin commands is the ability to shutdown the server (or CTRL-C might be pressed on the console). I'd like this action to notify all connected transports that the server is going down for shutdown, so

Re: [Twisted-Python] Waiting for transports to close

2015-12-17 Thread Glyph Lefkowitz
> On Dec 16, 2015, at 9:25 AM, Chris Norman > wrote: > > Hi all, > I'm writing a MUD server, and I want a way for transports to be notified ofa > shutdown before being disconnected, and the reactor being stopped. > > I've tried: > > for t in transports: > t.write('Shutting down.\r\n') > t.lo

[Twisted-Python] Waiting for transports to close

2015-12-16 Thread Chris Norman
Hi all, I'm writing a MUD server, and I want a way for transports to be notified ofa shutdown before being disconnected, and the reactor being stopped. I've tried: for t in transports: t.write('Shutting down.\r\n') t.loseConnection() reactor.stop() This doesn't seem to notify the transports