From bcbe6aef128f51ed28bffc5c0d8ddeb1c2d77da8 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 13 Jun 2011 19:43:56 +0200 Subject: abrt-server: convert to using simple HTTP; add deletion op Signed-off-by: Denys Vlasenko --- src/hooks/abrt_exception_handler.py.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hooks/abrt_exception_handler.py.in') diff --git a/src/hooks/abrt_exception_handler.py.in b/src/hooks/abrt_exception_handler.py.in index 5b45fcd4..ace51c5c 100644 --- a/src/hooks/abrt_exception_handler.py.in +++ b/src/hooks/abrt_exception_handler.py.in @@ -35,6 +35,7 @@ def write_dump(pid, tb): try: s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect(@VAR_RUN@ + "/abrt/abrt.socket") + s.sendall("PUT / HTTP/1.1\r\n\r\n") s.sendall("PID=%s\0" % pid) s.sendall("EXECUTABLE=%s\0" % executable) s.sendall("ANALYZER=Python\0") @@ -44,7 +45,7 @@ def write_dump(pid, tb): # CCMainWindow.py:1::ZeroDivisionError: integer division or modulo by zero s.sendall("REASON=%s\0" % tb.splitlines()[0]) s.sendall("BACKTRACE=%s\0" % tb) - s.sendall("DONE\0") + # TODO: read back response and complain if it is not "xxx Created" s.close() except Exception, ex: import syslog -- cgit