def handlePUBREL(self, response):
try:<EOL><INDENT>msg = self.factory.windowPubRx[self.addr][response.msgId]<EOL><DEDENT>except KeyError as e:<EOL><INDENT>log.debug("<STR_LIT>" , packet="<STR_LIT>", response=response)<EOL><DEDENT>else:<EOL><INDENT>log.debug("<STR_LIT>" , packet="<STR_LIT>", response=response)<EOL>del self.factory.windowPubRx[self.addr][response.msgId]<EOL>self._deliver(msg)<EOL>reply = PUBCOMP()<EOL>reply.msgId = response.msgId<EOL>reply.encode()<EOL>log.debug("<STR_LIT>" , packet="<STR_LIT>", response=response)<EOL>self.transport.write(reply.encode())<EOL><DEDENT>
Handle PUBREL control packet received.