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>
This commit is contained in:
parent
ebfbd0da26
commit
d4ee7bd5f0
|
|
@ -132,6 +132,8 @@ fatal error occurs.
|
||||||
sub start {
|
sub start {
|
||||||
my ($self) = @_;
|
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} } );
|
$self->{server}->launch_server( 'Koha::Z3950Responder', @{ $self->{yaz_options} } );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue