[Bps-public-commit] RT-Authen-OpenID branch, rt4, updated. 4e0f5a128c961b4cc134c76924da25858a299e4e

Thomas Sibley trs at bestpractical.com
Fri Mar 22 13:53:01 EDT 2013


The branch, rt4 has been updated
       via  4e0f5a128c961b4cc134c76924da25858a299e4e (commit)
      from  1c6e58ee68ac7faf763d54d256573da6572e0ca9 (commit)

Summary of changes:
 html/Callbacks/OpenID/autohandler/Session | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 4e0f5a128c961b4cc134c76924da25858a299e4e
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Fri Mar 22 10:52:49 2013 -0700

    Allow a more generous request timeout of 10s instead of the default 5s

diff --git a/html/Callbacks/OpenID/autohandler/Session b/html/Callbacks/OpenID/autohandler/Session
index da27c9a..b71b9c5 100644
--- a/html/Callbacks/OpenID/autohandler/Session
+++ b/html/Callbacks/OpenID/autohandler/Session
@@ -19,7 +19,10 @@ if ($ARGS{'openid.sig'}) {
 
 my $root_user = RT::User->new(RT->SystemUser);
 my $csr = Net::OpenID::Consumer->new(
-    ua              => LWP::UserAgent::Paranoid->new( protocols_allowed => ["http", "https"] ),
+    ua              => LWP::UserAgent::Paranoid->new(
+        protocols_allowed => ["http", "https"],
+        request_timeout   => 10, # seconds
+    ),
     args            => \%ARGS,
     cache           => Cache::FileCache->new,
     consumer_secret => 'x'.RT->Config->Get("DatabasePassword"),

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list