mastodon/app/lib
Eugen Rochko fd8145d232
Fix connect timeout not being enforced ()
* Fix connect timeout not being enforced

The loop was catching the timeout exception that should stop execution, so the next IP would no longer be within a timed block, which led to requests taking much longer than 10 seconds.

* Use timeout on each IP attempt, but limit to 2 attempts

* Fix code style issue

* Do not break Request#perform if no block given

* Update method stub in spec for Request

* Move timeout inside the begin/rescue block

* Use Resolv::DNS with timeout of 1 to get IP addresses

* Update Request spec to stub Resolv::DNS instead of Addrinfo

* Fix Resolve::DNS stubs in Request spec
..
activitypub Prevent multiple handlers for Delete of Actor from running ()
ostatus Improve support for aspects/circles ()
settings Remove intermediary arrays when creating hash maps from results ()
activity_tracker.rb Fix stats expiring too quickly because of variable mistake ()
application_extension.rb Conditional validations no longer accept strings for if/unless ()
delivery_failure_tracker.rb After 7 days of repeated delivery failures, give up on inbox ()
entity_cache.rb Remove intermediary arrays when creating hash maps from results ()
exceptions.rb Detect and prevent image bombs, max. processable dimension 4096^2 ()
extractor.rb Using double splat operator ()
fast_geometry_parser.rb Fix avatar and header issues by using custom geometry detector ()
feed_manager.rb Include replies to list owner and replies to list members in list statuses ()
formatter.rb Remove intermediary arrays when creating hash maps from results ()
hash_object.rb Migrate from ledermann/rails-settings to rails-settings-cached which allows global settings
inline_renderer.rb Add conversations API ()
language_detector.rb Leave unknown language as nil if account is remote ()
potential_friendship_tracker.rb Fix activity:interactions counter to count all interactions ()
request.rb Fix connect timeout not being enforced ()
rss_builder.rb Add RSS feeds for end-users ()
sanitize_config.rb Whitelist dat/ipfs/gopher links in sanitizer ()
sidekiq_error_handler.rb Raise Mastodon::HostValidationError when host for HTTP request is private ()
status_filter.rb Fix n+1 queries in StatusThreadingConcern ()
status_finder.rb Raise an error for remote url in StatusFinder ()
tag_manager.rb Introduce OStatus::TagManager ()
themes.rb Add support for multiple themes ()
user_settings_decorator.rb Add a new preference to always hide all media ()
webfinger_resource.rb Allow webfinger controller to reply to user@WEB_DOMAIN in addition to user@LOCAL_DOMAIN ()