From ae4cc0d692d25cf9c9a11ba3f557bce66061761b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 3 Oct 2025 14:13:09 +0200 Subject: [PATCH] Bug 40946: Remove warning "Aborted connection" from Koha/Z3950Responder/ZebraSession.t start_server from Net::Z3950::SimpleServer is going to fork and the DB server is aborting the connection db-1 | 2025-10-03 12:02:12 272 [Warning] Aborted connection 272 to db: 'koha_kohadev' user: 'koha_kohadev' host: '172.19.0.6' (Got an error reading communication packets) Test plan: prove t/db_dependent/Koha/Z3950Responder/ZebraSession.t => Without this patch you will see a warning in the db container log => With this patch apply the warning no longer appears --- Koha/Z3950Responder.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/Z3950Responder.pm b/Koha/Z3950Responder.pm index e79ce7c10aa..a3f28139520 100644 --- a/Koha/Z3950Responder.pm +++ b/Koha/Z3950Responder.pm @@ -132,6 +132,8 @@ fatal error occurs. sub start { my ($self) = @_; + # start_server from Net::Z3950::SimpleServer is going to fork + C4::Context->dbh->disconnect; $self->{server}->launch_server( 'Koha::Z3950Responder', @{ $self->{yaz_options} } ); } -- 2.34.1