Close http connection in perform method of Request class (#6889)
HTTP connections must be explicitly closed in many cases, and letting perform method close connections makes its callers less redundant and prevent them from forgetting to close connections.
Showing
- app/helpers/jsonld_helper.rb 3 additions, 3 deletionsapp/helpers/jsonld_helper.rb
- app/lib/provider_discovery.rb 8 additions, 9 deletionsapp/lib/provider_discovery.rb
- app/lib/request.rb 12 additions, 4 deletionsapp/lib/request.rb
- app/models/concerns/remotable.rb 17 additions, 17 deletionsapp/models/concerns/remotable.rb
- app/services/fetch_atom_service.rb 24 additions, 23 deletionsapp/services/fetch_atom_service.rb
- app/services/fetch_link_card_service.rb 15 additions, 6 deletionsapp/services/fetch_link_card_service.rb
- app/services/resolve_account_service.rb 4 additions, 5 deletionsapp/services/resolve_account_service.rb
- app/services/send_interaction_service.rb 3 additions, 5 deletionsapp/services/send_interaction_service.rb
- app/services/subscribe_service.rb 18 additions, 18 deletionsapp/services/subscribe_service.rb
- app/services/unsubscribe_service.rb 3 additions, 4 deletionsapp/services/unsubscribe_service.rb
- app/workers/activitypub/delivery_worker.rb 7 additions, 8 deletionsapp/workers/activitypub/delivery_worker.rb
- app/workers/pubsubhubbub/confirmation_worker.rb 6 additions, 12 deletionsapp/workers/pubsubhubbub/confirmation_worker.rb
- app/workers/pubsubhubbub/delivery_worker.rb 6 additions, 11 deletionsapp/workers/pubsubhubbub/delivery_worker.rb
- lib/tasks/mastodon.rake 2 additions, 2 deletionslib/tasks/mastodon.rake
- spec/lib/request_spec.rb 10 additions, 4 deletionsspec/lib/request_spec.rb
Please register or sign in to comment