Skip to content

Commit 56c4486

Browse files
committed
Revert "kill mars client if web socket closed"
This reverts commit ad0b90d.
1 parent ad0b90d commit 56c4486

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

cads_mars_server/server.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,7 @@ def send_header(
219219
signal.alarm(self.timeout)
220220
total += len(data)
221221
# LOG.info(f"Sending data {len(data)} total {total:_}")
222-
try:
223-
self.wfile.write(data)
224-
except IOError:
225-
try:
226-
LOG.error("Error sending data")
227-
LOG.error("Killing mars process %s", pid)
228-
os.kill(pid, signal.SIGKILL)
229-
except Exception as e:
230-
LOG.error("Error killing mars process %s", e)
231-
pass
232-
raise
222+
self.wfile.write(data)
233223
signal.alarm(0)
234224

235225
count += 1

0 commit comments

Comments
 (0)