Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ampoule doesn't handle childConnectionLost #36

Open
graingert opened this issue Aug 6, 2020 · 0 comments
Open

ampoule doesn't handle childConnectionLost #36

graingert opened this issue Aug 6, 2020 · 0 comments

Comments

@graingert
Copy link
Member

/opt/001-python/lib/python3.8/site-packages/ampoule/pool.py:397: in stop
    l = [self.stopAWorker(process) for process in self.processes]
/opt/001-python/lib/python3.8/site-packages/ampoule/pool.py:397: in <listcomp>
    l = [self.stopAWorker(process) for process in self.processes]
/opt/001-python/lib/python3.8/site-packages/ampoule/pool.py:351: in stopAWorker
    child.callRemote(commands.Shutdown
/opt/001-python/lib/python3.8/site-packages/twisted/protocols/amp.py:969: in callRemote
    return co._doCommand(self)
/opt/001-python/lib/python3.8/site-packages/twisted/protocols/amp.py:1998: in _doCommand
    d = proto._sendBoxCommand(self.commandName,
/opt/001-python/lib/python3.8/site-packages/twisted/protocols/amp.py:900: in _sendBoxCommand
    box._sendTo(self.boxSender)
/opt/001-python/lib/python3.8/site-packages/twisted/protocols/amp.py:723: in _sendTo
    proto.sendBox(self)
/opt/001-python/lib/python3.8/site-packages/twisted/protocols/amp.py:2384: in sendBox
    self.transport.write(box.serialize())
/opt/001-python/lib/python3.8/site-packages/ampoule/main.py:82: in write
    self.transport.writeToChild(TO_CHILD, data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <Process pid=1030 status=-1>, childFD = 3
data = b'\x00\x04_ask\x00\x012\x00\x08_command\x00\x08Shutdown\x00\x00'
    def writeToChild(self, childFD, data):
>       self.pipes[childFD].write(data)
E       KeyError: 3
graingert added a commit to graingert/ampoule that referenced this issue Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant