A bit awkward to clutter a standard library with too much speculative forgiveness of other software's potential failure to follow a spec. Where would it end?
Anyway, the best improvement here would help with all InputStream consumers, not just io/copy. If you suffer from a faulty InputStream that returns zero when it simply does not feel like blocking, couldn't you either fix it or wrap it in a "TolerateZeroBytesReadByRetryingInputStream" that blocks until it gets something other than zero? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/84da2491-2a3c-4b0c-9406-49f63ed6caf4%40googlegroups.com.