Skip to content

Commit

Permalink
[Open311] Increase default timeout.
Browse files Browse the repository at this point in the history
The LWP default is 180 seconds.
  • Loading branch information
dracos committed Jan 7, 2022
1 parent 74703ab commit 0e34d57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
- Default make_css to `web/cobrands` rather than `web`.
- Ability to pass custom arguments (eg: SSL config) to server when running via Docker
- Allow bin/fetch start/end times to be fractional.
- Open311 improvements:
- Increase default timeout.

* v4.0 (3rd December 2021)
- Front end improvements:
Expand Down
2 changes: 1 addition & 1 deletion perllib/Open311.pm
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ sub _request {

sub _make_request {
my ($self, $req) = @_;
my $ua = LWP::UserAgent->new;
my $ua = LWP::UserAgent->new( timeout => 300 );
my $res = $ua->request( $req );
return $res;
}
Expand Down

0 comments on commit 0e34d57

Please sign in to comment.