Added an optional parameter for ngx.req.set_header and ngx.req.clear_header that determines whether or not to replace underscores with hyphens.
Previously, underscores were replaced unconditionally.
Currently each of the functions has another boolean argument. If it's false, underscores would not be touched. If it's true, they would.
The default value of the argument is true.
Merged with 0.8.1
Changed the replace_underscores parameter to a table of parameters (options), in which the only possible option currently is replace_underscores.
Added an options table to clean_header as well.
Merge branch 'master' of https://github.com/chaoslawful/lua-nginx-module
Removed unneeded variable.
Added SSL support for TCP cosockets.
Multiple changes:
 - Now receive and send operations can be done simultaneous from several threads.
 - A different timeout can be set for receive and send.
 - Added fake_close for the client socket (ngx.req.socket), so that a thread that receives on this socket can be notified that we don't want to read from it anymore.
Added the option 'bsd_receive' to the receive method, which enables us to receive just like BSD's recv call, meaning the maximum number of bytes given.
This will only work only when a number is given as the first parameter for receive.
Note that this differs from the original LuaSocket API.
Added fake_close to the raw socket as well.
Merge branch 'master' of https://github.com/chaoslawful/lua-nginx-module
ngx_http_lua_socket_read_handler was declared twice...
Reverted unnecessary changes.
Reverted unnecessary changes.
Revereted unnecessary changes.
Setting `ctx->writing_raw_req_socket` to 0 when the raw downstream socket is finalized, so that if `ngx_http_lua_wev_handler` runs after the raw downstream socket is closed, it won't try to call its read/write handler.
Bugfix - correcting u->prepare_retvals on each read/write success/error handling functions, as if both read and write are done simultaenously, they may override each others preapre_retvals function.
Merge remote-tracking branch 'original-repository/master'
`ngx_http_lua_req_socket_rev_handler()` could be called when `u->peer.connection` is NULL in case there was an error in the client socket, causing a SEGFAULT.
Merged from master