zhaoyanliang

Results 4 issues of zhaoyanliang

https://github.com/nikic/PHP-Parser/blob/57b8673ea7373100e80aecdf18fe82c0dddbea28/lib/PhpParser/PrettyPrinterAbstract.php#L452 https://github.com/nikic/PHP-Parser/blob/57b8673ea7373100e80aecdf18fe82c0dddbea28/lib/PhpParser/Comment.php#L86 ```php

In php7, a lot of char* is replaced by zend_string*, this helps reduce memory allocation and hash calculations. This should also apply to zephir that is still heavily using char*....

enhancement

我在 tcprelay.cpp 中发现了以下代码 ```C++ void TcpRelay::close() { if (stage == DESTROYED) { return; } local->close(); remote->close(); stage = DESTROYED; emit finished(); } ``` 看下Qt文档对`close()`的描述 > void QAbstractSocket::close() > Reimplemented from...

AnyProxy向客户端发送请求前,会调用beforeSendResponse, 因为beforeSendResponse中的参数需要包含本次响应的全部数据, 所以anyproxy实际上需要先缓存本次请求的所有数据, 这对于下载比较大的文件不够友好, 希望能够增加流式转发的能力 实现上可以参考mitmproxy, 增加beforeSendResponseHeaders接口, 在此接口中决定是否进行流式转发 mitmproxy中的例子 https://docs.mitmproxy.org/stable/addons-examples/#example-complexstreampy https://docs.mitmproxy.org/stable/addons-examples/#example-complexstream_modifypy