From: Bill Erickson Date: Fri, 20 Jan 2023 16:55:23 +0000 (-0500) Subject: LP2017941 Router requests are stateless X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1c562ebc7e8459ae4c91961da51ebcd9e428bde7;p=working%2FOpenSRF.git LP2017941 Router requests are stateless Signed-off-by: Bill Erickson --- diff --git a/src/perl/lib/OpenSRF/AppSession.pm b/src/perl/lib/OpenSRF/AppSession.pm index 25ddd1b..a8bde49 100644 --- a/src/perl/lib/OpenSRF/AppSession.pm +++ b/src/perl/lib/OpenSRF/AppSession.pm @@ -137,6 +137,7 @@ sub server_build { my $config_client = OpenSRF::Utils::SettingsClient->new(); my $stateless = $config_client->config_value("apps", $service, "stateless"); + $stateless = 1 if $service eq 'router'; #my $max_requests = $conf->$service->max_requests; my $max_requests = $config_client->config_value("apps",$service,"max_requests"); @@ -249,6 +250,8 @@ sub create { $stateless = $c->config_value("apps", $app, "stateless"); } + $stateless = 1 if $app eq 'router'; + my $sess_id = time . rand( $$ ); while ( $class->find($sess_id) ) { $sess_id = time . rand( $$ );