Skip to content

Commit a023fd3

Browse files
committed
Revert loadserviceis back to bufferedis until I understand what all comes through this resourcelibrary
1 parent 3ab40f0 commit a023fd3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,8 @@ public ResourceLibrary(String searchName, String scriptName, FileResource resour
234234
public void load(Ruby runtime, boolean wrap) {
235235
InputStream is;
236236
try {
237-
is = new LoadServiceResourceInputStream(resource.inputStream());
238-
}
239-
catch(IOException e) {
237+
is = new BufferedInputStream(resource.inputStream(), 32768);
238+
} catch(IOException e) {
240239
throw runtime.newLoadError("no such file to load -- " + searchName, searchName);
241240
}
242241

0 commit comments

Comments
 (0)