mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-07-06 00:00:40 -04:00
Compare commits
2 Commits
9c765385a5
...
e8be009c7c
Author | SHA1 | Date | |
---|---|---|---|
|
e8be009c7c | ||
|
c7a38ee5b4 |
@ -526,7 +526,8 @@ module HTTPX
|
|||||||
Errno::EHOSTUNREACH,
|
Errno::EHOSTUNREACH,
|
||||||
Errno::EINVAL,
|
Errno::EINVAL,
|
||||||
Errno::ENETUNREACH,
|
Errno::ENETUNREACH,
|
||||||
Errno::EPIPE => e
|
Errno::EPIPE,
|
||||||
|
Errno::ENOENT => e
|
||||||
# connect errors, exit gracefully
|
# connect errors, exit gracefully
|
||||||
error = ConnectionError.new(e.message)
|
error = ConnectionError.new(e.message)
|
||||||
error.set_backtrace(e.backtrace)
|
error.set_backtrace(e.backtrace)
|
||||||
|
@ -20,6 +20,11 @@ class UnixTest < Minitest::Test
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_unix_session_no_path
|
||||||
|
response = HTTPX.get("http://does-not-matter", transport: "unix", addresses: "blabla.sock")
|
||||||
|
verify_error_response(response, /No such file or directory/)
|
||||||
|
end
|
||||||
|
|
||||||
def test_unix_session_io
|
def test_unix_session_io
|
||||||
on_unix_server(__method__) do |path|
|
on_unix_server(__method__) do |path|
|
||||||
io = UNIXSocket.new(path)
|
io = UNIXSocket.new(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user