Skip to content

Commit b75260c

Browse files
KevinjilmeisterT
authored andcommitted
Ignore TLS protocol error.
The logs gets spammed with roughtly 1GiB/s on rare occasions.
1 parent 2bde645 commit b75260c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,13 @@ protected function importFromCcsApi(array $eventsToSkip, ?callable $progressRepo
407407
$this->setLastEvent($this->getLastReadEventId());
408408
}
409409
} catch (TransportException $e) {
410-
$this->logger->error(
411-
'Received error while reading event feed: %s',
412-
[$e->getMessage()]
413-
);
410+
if (!str_starts_with($e->getMessage(), 'OpenSSL SSL_read: error:0A000126')) {
411+
// Ignore error of not fully compliant TLS implementation on server-side
412+
$this->logger->error(
413+
'Received error while reading event feed: %s',
414+
[$e->getMessage()]
415+
);
416+
}
414417
}
415418
}
416419

0 commit comments

Comments
 (0)