Skip to content

Commit

Permalink
Ignore TLS protocol error.
Browse files Browse the repository at this point in the history
The logs gets spammed with roughtly 1GiB/s on rare occasions.
  • Loading branch information
Kevinjil authored and meisterT committed Apr 20, 2024
1 parent 9f44e13 commit f7fb4ba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions webapp/src/Service/ExternalContestSourceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,13 @@ protected function importFromCcsApi(array $eventsToSkip, ?callable $progressRepo
$this->setLastEvent($this->getLastReadEventId());
}
} catch (TransportException $e) {
$this->logger->error(
'Received error while reading event feed: %s',
[$e->getMessage()]
);
if (!str_starts_with($e->getMessage(), 'OpenSSL SSL_read: error:0A000126')) {
// Ignore error of not fully compliant TLS implementation on server-side
$this->logger->error(
'Received error while reading event feed: %s',
[$e->getMessage()]
);
}
}
}

Expand Down

0 comments on commit f7fb4ba

Please sign in to comment.