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
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit d4ee7bd5f0)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
03057a125f
commit
07803d178b
|
|
@ -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} } );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue