Hi!

I have a question regarding `t.a.i.StreamServerEndpointService`. This 
class maintains an attribute `_waitingForPort` that holds the deferred 
returned by the `listen` method of the endpoint.

If this attribute is None, the method `privilegedStartService` is called 
by `startService`, triggering the endpoint's `listen` method (among 
other things).

I don't understand why this attribute is not reset to `None` when 
`stopService` is executed. With the deferred still around, starting the 
service again doesn't seem to work as expected, since it will not call 
`privilegedStartService` the second time.

I might be wrong, but this looks like a bug to me. Maybe I didn't
understand how to use this class, though...

Any comments?

Albert
-- 
Albert Brandl
Weiermayer Solutions GmbH      | Abteistraße 12, A-4813 Altmünster
phone: +43 (0) 720 70 30 14    | fax: +43 (0) 7612 20 3 56
web: http://www.weiermayer.com

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to