On Tue, Nov 27, 2012 at 8:59 AM, 黄 轶明 <hoooooosety@gmail.com> wrote:

class Factory(ServerFactory):

def StopFactory(self):
# which is the p above

I thought the subprocess will be killed which is not.

What's wrong with my code? Thanks!

Perhaps StopFactory is not being called? Are you calling it? If not, and you expected the reactor to call it when you stopped listening, it should be stopFactory, rather than StopFactory.

Itamar Turner-Trauring, Future Foundries LLC
http://futurefoundries.com/ — Twisted consulting, training and support.