Commit db069ce
Fix JRuby 10.1 compatibility in supports_connect_timeout?
JRuby 10.1.0.0 (Ruby 4.0 compat) does not support instance_method on
its Java-backed TCPSocket, causing NoMethodError on every connection
attempt. Guard the introspection with RUBY_ENGINE == 'ruby' so JRuby
falls back to Timeout.timeout, consistent with the existing MRI-specific
skip guard in the test.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5139d8b commit db069ce
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments