Bugzilla – Attachment 187382 Details for
Bug 40945
"Aborted connection" warnings in tests output
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40945: Remove warning "Aborted connection" from Koha/Z3950Responder/ZebraSession.t
Bug-40945-Remove-warning-Aborted-connection-from-K.patch (text/plain), 1.24 KB, created by
Jonathan Druart
on 2025-10-03 12:16:18 UTC
(
hide
)
Description:
Bug 40945: Remove warning "Aborted connection" from Koha/Z3950Responder/ZebraSession.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-10-03 12:16:18 UTC
Size:
1.24 KB
patch
obsolete
>From 573e8285d509580d1a55891ad9cbbee114945021 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 3 Oct 2025 14:13:09 +0200 >Subject: [PATCH] Bug 40945: 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40945
:
187382