3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
## Next Release
2
2
3
+ * Fix reloading issue in Ruby 3.3.
4
+
3
5
## 4.2.1
4
6
5
7
* Added ` Spring.connect_timeout ` and ` Spring.boot_timeout ` to allow to increase timeout for larger apps.
Original file line number Diff line number Diff line change @@ -126,7 +126,8 @@ def start_wait_thread(pid, child)
126
126
# as if it does we're no longer interested in the child
127
127
loop do
128
128
IO . select ( [ child ] )
129
- break if child . recv ( 1 , Socket ::MSG_PEEK ) . empty?
129
+ peek = child . recv ( 1 , Socket ::MSG_PEEK )
130
+ break if peek . nil? || peek . empty?
130
131
sleep 0.01
131
132
end
132
133
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ def self.omg
189
189
app . insert_into_test "Foo.omg"
190
190
191
191
app . await_reload
192
- assert_failure app . spring_test_command , stdout : "RuntimeError: omg"
192
+ assert_failure app . spring_test_command , stdout : "RuntimeError: omg" , log : /child \d + shutdown/
193
193
end
194
194
195
195
test "app gets reloaded even with a ton of boot output" do
0 commit comments