_mdhs
_mdhs
I have a problem when building a RESTful API service.Some on stackoverflow have the same problem [http://stackoverflow.com/questions/17306358/golang-removing-fields-from-struct-or-hiding-them-in-json-response](http://stackoverflow.com/questions/17306358/golang-removing-fields-from-struct-or-hiding-them-in-json-response) > I'd now like to allow the caller to be able to select...
## Is your feature request related to a problem? Please describe. In default fzf window(eg. created by calling `:FZF `), pressing `ctrl-v` can open file in a new vertical splitted...
When doing so: ``` class AModel(Model): sub_field = StringType() class BModel(Model): field1 = ModelType(AModel) field2 = ModelType(AModel) b = BModel() b.field2.sub_field = "test" ``` an exception will be raised: ```...
hi 本机文件不存在通过proxy转发到源ip的时候,可以成功转发,但是是在转发成功 1min 后,在nginx 的 error.log 中会出现一行 upstream 连接超时的报错,如下: ``` 2017/04/07 16:58:39 [error] 1701#0: *1 upstream timed out (110: Connection timed out) while reading upstream, client: 172.16.2.112, server: localhost, request:...
ngx_print_escape 函数只在 NGX_HTTP_UPSTREAM_CHECK 开启时定义,否则gcc会报一个「定义后未使用」的错误,而且该函数只在NGX_HTTP_UPSTREAM_CHECK开启的时候才会被调用,所以将函数定义也放在upstream check中也更合适。
proxy 处理请求的过程中经常需要分配 `proxy.Request` 和 `redis.Resp` 两种对象。这个 PR 通过 `sync.Pool` 进行了复用,应当可以降低GC压力。 `proxy.Request` and `redis.Resp` is allocated most often in request processing. This PR try to reuse these objects using `sync.Pool` which...