- Notifications
You must be signed in to change notification settings - Fork108
Commitdaf314a
committed
Remove usage of IO#nread
IO#wait, a method to obtain the number of bytes readable withoutblocking, has been removed from io/wait.ruby/io-wait@1decadcWhen WEBrick is combined with io.wait >= 0.4.0, the following erroroccurs on shutdown: ERROR NoMethodError: undefined method 'nread' for an instance of IO /(snip)/webrick-1.9.1/lib/webrick/server.rb:178:in 'block in WEBrick::GenericServer#start'WEBrick uses IO#nread to efficiently consume the entire input streamduring shutdown. This patch removes the call to IO#nread, and insteadrepeatedly take a fixed size of 8 bytes each iteration.1 parent5584117 commitdaf314a
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
| 177 | + | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
0 commit comments
Comments
(0)