Skip to content

Commit 8e73157

Browse files
committed
merge revision(s) r49175: [Backport ruby#10712]
* lib/resolv.rb: consider ENETUNREACH as ResolvTimeout [ruby-core:67411] [Bug ruby#10712] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@49785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 4ad3a5c commit 8e73157

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Sun Mar 1 01:14:59 2015 Eric Wong <[email protected]>
2+
3+
* lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
4+
[ruby-core:67411] [Bug #10712]
5+
16
Sun Mar 1 01:01:21 2015 SHIBATA Hiroshi <[email protected]>
27

38
* lib/net/http.rb (Net::HTTP#send_request): there is no response body

lib/resolv.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,8 @@ def request(sender, tout)
671671
timelimit = start + tout
672672
begin
673673
sender.send
674-
rescue Errno::EHOSTUNREACH
675-
# multi-homed IPv6 may generate this
674+
rescue Errno::EHOSTUNREACH, # multi-homed IPv6 may generate this
675+
Errno::ENETUNREACH
676676
raise ResolvTimeout
677677
end
678678
while true

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.5"
22
#define RUBY_RELEASE_DATE "2015-03-01"
3-
#define RUBY_PATCHLEVEL 302
3+
#define RUBY_PATCHLEVEL 303
44

55
#define RUBY_RELEASE_YEAR 2015
66
#define RUBY_RELEASE_MONTH 3

0 commit comments

Comments
 (0)