Hello! 2014-07-28 3:08 GMT-07:00 Lei King: > 我想在nginx收到一个http请求后,发起一个udp请求,根据这个udp请求的结果来处理这个http请求, > > 请问各位高手:nginx可以做到么?需要使用哪个库? > 见 ngx_lua 模块提供的非阻塞的 UDP cosocket API: https://github.com/openresty/lua-nginx-module#ngxsocketudp 比如 lua-resty-dns 库正是这个接口: https://github.com/openresty/lua-resty-dns Regards, -agentzh