Commit d206645d authored by Aurel's avatar Aurel

do not answer to connection with no uuid


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@244 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d902ebc2
......@@ -591,12 +591,22 @@ class ServiceEventHandler(MasterEventHandler):
pass
def handleAskLastIDs(self, conn, packet):
uuid = conn.getUUID()
if uuid is None:
self.handleUnexpectedPacket(conn, packet)
return
app = self.app
p = Packet()
p.answerLastIDs(packet.getId(), app.loid, app.ltid, app.lptid)
conn.addPacket(p)
def handleAskUnfinishedTransactions(self, conn, packet):
uuid = conn.getUUID()
if uuid is None:
self.handleUnexpectedPacket(conn, packet)
return
app = self.app
p = Packet()
p.answerUnfinishedTransactions(packet.getId(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment