From ab21bb5e3f47c71065be1899d6495d5c4ee54662 Mon Sep 17 00:00:00 2001 From: l_samenv Date: Tue, 8 Sep 2020 13:32:18 +0200 Subject: [PATCH] add timestamp to error reply --- secop/protocol/interface/tcp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secop/protocol/interface/tcp.py b/secop/protocol/interface/tcp.py index 58ccc33..900014f 100644 --- a/secop/protocol/interface/tcp.py +++ b/secop/protocol/interface/tcp.py @@ -25,6 +25,7 @@ import sys import socket import socketserver import threading +import time from secop.datatypes import StringType, BoolType from secop.errors import SECoPError @@ -133,6 +134,7 @@ class TCPRequestHandler(socketserver.BaseRequestHandler): if result[0].startswith(ERRORPREFIX) and not detailed_errors: # strip extra information result[2][2].clear() + result[2][2]['t'] = time.time() self.send_reply(result) def send_reply(self, data):