mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Sadly it doesnt help
This commit is contained in:
parent
b28c79f6bb
commit
6fd86b937e
@ -648,14 +648,6 @@ class ServerLoop(object):
|
||||
if iswindows:
|
||||
self.control_in.sendall(what)
|
||||
else:
|
||||
try:
|
||||
self.control_in.write(what)
|
||||
self.control_in.flush()
|
||||
except BrokenPipeError:
|
||||
# this started happening in the CI environment for the ajax_book test
|
||||
# in early Dec 2020
|
||||
self.log.error('Control pipe broken, resetting')
|
||||
self.create_control_connection()
|
||||
self.control_in.write(what)
|
||||
self.control_in.flush()
|
||||
|
||||
|
@ -7,7 +7,6 @@ __copyright__ = '2015, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
import json
|
||||
import os
|
||||
import time
|
||||
import zlib
|
||||
from functools import partial
|
||||
from io import BytesIO
|
||||
@ -38,11 +37,6 @@ class ContentTest(LibraryBaseTest):
|
||||
db = server.handler.router.ctx.library_broker.get(None)
|
||||
conn = server.connect()
|
||||
request = partial(make_request, conn, prefix='/ajax/book')
|
||||
|
||||
try:
|
||||
r, data = request('/x')
|
||||
except ConnectionRefusedError:
|
||||
time.sleep(2)
|
||||
r, data = request('/x')
|
||||
self.ae(r.status, NOT_FOUND)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user