Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch tweaks #3738

Merged
merged 2 commits into from
Jan 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
- Development improvements:
- 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
4 changes: 2 additions & 2 deletions bin/fetch
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ my ($opts, $usage) = describe_options(
'%c %o',
['reports', 'fetch reports'],
['updates', 'fetch updates'],
['start|s:i', 'start time to use (hours before now), defaults to one (reports) or two (updates)' ],
['end|e:i', 'end time to use (hours before now), defaults to zero' ],
['start|s:f', 'start time to use (hours before now), defaults to one (reports) or two (updates)' ],
['end|e:f', 'end time to use (hours before now), defaults to zero' ],
['body|b:s', 'body name to only fetch this body' ],
['verbose|v', 'more verbose output'],
['help|h', "print usage message and exit" ],
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