sebastien-ma
sebastien-ma
我晚上拜读一下annotation部分的代码,handler的代码实现的比较简陋,因为目前没有考虑到Pipeline端读数据的问题,晚上我整理一下代码看看能不能做一个pull request。
这方面是否可以考虑groovy或者scala?
@code4craft 方便的话我可以利用碎片时间帮忙翻译
IOUtils.toString(httpResponse.getEntity().getContent()) 会使用并关闭response的inputstram 当下一个方法使用检测到的charset编码时会报 java.io.IOException: Attempted read from closed stream. 建议先吧content取到byte[]而不是string里 因为用错误的charset出来的string无法转回正确的charset了。 byte[] contentByteArray = IOUtils.toByteArray(httpResponse.getEntity().getContent()); 取到正确的charset之后通过byte[]创建正确的string new String(contentByteArray, charset)
这里写作poll更合适 参考Queue interface
建议log4j.xml只需要放到test下就可以了。 作为一个library来说确实不应该在classpath下有log4j.xml
I can confirm the issue is fixed in v11.72.1. Thanks for the quick turnaround.
I only run untrusted code in child process. Can't risk running it in the main V8 instance especially when you know it's single threaded. The problem of calling V8 engine...
> Thanks for the report. Could you try the developer build posted by my colleague @djs55 at [#5572 (comment)](https://github.com/docker/for-mac/issues/5572#issuecomment-822302592) and report whether it fixes it? If not, please upload diagnostics...