From a023fd3e377d6c88356873cd7ceab5efe04b44df Mon Sep 17 00:00:00 2001 From: "Thomas E. Enebo" Date: Mon, 6 Apr 2015 16:58:10 -0500 Subject: [PATCH] Revert loadserviceis back to bufferedis until I understand what all comes through this resourcelibrary --- .../main/java/org/jruby/runtime/load/LibrarySearcher.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java b/core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java index 1f2f7c920c1..ef49c763cb7 100644 --- a/core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java +++ b/core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java @@ -234,9 +234,8 @@ public ResourceLibrary(String searchName, String scriptName, FileResource resour public void load(Ruby runtime, boolean wrap) { InputStream is; try { - is = new LoadServiceResourceInputStream(resource.inputStream()); - } - catch(IOException e) { + is = new BufferedInputStream(resource.inputStream(), 32768); + } catch(IOException e) { throw runtime.newLoadError("no such file to load -- " + searchName, searchName); }