Yichun Zhang

Results 937 comments of Yichun Zhang

@lordnynex I agree. Yeah, I have something in my mind. I'll try drafting an alternative API design for open discussions soon (sorry, I've been too busy with those ngx_stream_\* module...

@daurnimator Not yet, sorry. Been busy with the upcoming OpenResty 1.9.7.1 release.

@bungle Thanks for following this discussion. Basically I'm thinking about a more OO-like API for this. Maybe something like this? ``` lua local connection = require "ngx.connection" local c =...

@daurnimator Thanks. I'll look into it as soon as I can manage.

@daurnimator `init_by_lua*` runs in the nginx master process context which requires some kind of emulation there. The same applies to the existing cosocket API.

@membphis There are quite some coding style issues in your changes. Please use the [ngx-releng](https://github.com/openresty/nginx-devel-utils/blob/master/ngx-releng) tool to check the coding style. Thank you.

I'll look into this as soon as I can manage :)

@JakSprats We distinguish between bad argument errors due to API misuse and other kinds of errors. The former usually results in Lua exceptions so that the user cannot (easily) ignore...

We have been using it in production for quite a long time and we've never seen such things ourselves. Please provide a minimal and standalone example with precise steps that...

@gaoyue1989 To quote the official documentation for the `connect` method: > Before actually resolving the host name and connecting to the remote backend, this method will > always look up...