Sha256: ede720a961874e2247c27b5c362e50b4fb4fc0794e755a49f555525811f19c99
Contents?: true
Size: 660 Bytes
Versions: 25
Compression:
Stored size: 660 Bytes
Contents
# frozen_string_literal: true require "net/http" module PlatformosCheck TIMEOUT_EXCEPTIONS = [ Net::ReadTimeout, Net::OpenTimeout, Net::WriteTimeout, Errno::ETIMEDOUT, Timeout::Error ] CONNECTION_EXCEPTIONS = [ IOError, EOFError, SocketError, Errno::EINVAL, Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE, Errno::ECONNREFUSED, Errno::EAGAIN, Errno::EHOSTUNREACH, Errno::ENETUNREACH, Errno::EADDRNOTAVAIL ] NET_HTTP_EXCEPTIONS = [ Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError, *TIMEOUT_EXCEPTIONS, *CONNECTION_EXCEPTIONS ] end
Version data entries
25 entries across 25 versions & 1 rubygems