From 1c562ebc7e8459ae4c91961da51ebcd9e428bde7 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 20 Jan 2023 11:55:23 -0500 Subject: [PATCH] LP2017941 Router requests are stateless Signed-off-by: Bill Erickson --- src/perl/lib/OpenSRF/AppSession.pm | 3 +++ 1 file changed, 3 insertions(+) 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( $$ ); -- 2.11.0