Sadly it doesnt help

This commit is contained in:
Kovid Goyal 2020-12-08 12:16:14 +05:30
parent b28c79f6bb
commit 6fd86b937e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 17 deletions

View File

@ -648,16 +648,8 @@ class ServerLoop(object):
if iswindows: if iswindows:
self.control_in.sendall(what) self.control_in.sendall(what)
else: else:
try: self.control_in.write(what)
self.control_in.write(what) self.control_in.flush()
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()
def wakeup(self): def wakeup(self):
self.write_to_control(WAKEUP) self.write_to_control(WAKEUP)

View File

@ -7,7 +7,6 @@ __copyright__ = '2015, Kovid Goyal <kovid at kovidgoyal.net>'
import json import json
import os import os
import time
import zlib import zlib
from functools import partial from functools import partial
from io import BytesIO from io import BytesIO
@ -38,12 +37,7 @@ class ContentTest(LibraryBaseTest):
db = server.handler.router.ctx.library_broker.get(None) db = server.handler.router.ctx.library_broker.get(None)
conn = server.connect() conn = server.connect()
request = partial(make_request, conn, prefix='/ajax/book') request = partial(make_request, conn, prefix='/ajax/book')
r, data = request('/x')
try:
r, data = request('/x')
except ConnectionRefusedError:
time.sleep(2)
r, data = request('/x')
self.ae(r.status, NOT_FOUND) self.ae(r.status, NOT_FOUND)
r, onedata = request('/1') r, onedata = request('/1')