summaryrefslogtreecommitdiffstats
path: root/src/hooks/abrt_exception_handler.py.in
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-06-13 19:43:56 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-06-13 19:43:56 +0200
commitbcbe6aef128f51ed28bffc5c0d8ddeb1c2d77da8 (patch)
tree6e2469e89356850c51d89512b98f33a50f1c3f8a /src/hooks/abrt_exception_handler.py.in
parent8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3 (diff)
downloadabrt-bcbe6aef128f51ed28bffc5c0d8ddeb1c2d77da8.tar.gz
abrt-bcbe6aef128f51ed28bffc5c0d8ddeb1c2d77da8.tar.xz
abrt-bcbe6aef128f51ed28bffc5c0d8ddeb1c2d77da8.zip
abrt-server: convert to using simple HTTP; add deletion op
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/hooks/abrt_exception_handler.py.in')
-rw-r--r--src/hooks/abrt_exception_handler.py.in3
1 files changed, 2 insertions, 1 deletions
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:<module>: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