We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32d3f58 commit 2632a14Copy full SHA for 2632a14
1 file changed
src/ngx_http_lua_async_fs.c
@@ -50,12 +50,14 @@ typedef struct {
50
typedef struct {
51
ngx_uint_t op;
52
53
- u_char *path; /* malloc'd copy */
+ /* open params */
54
+ u_char *path;
55
int flags;
56
int create_mode;
57
58
+ /* read/write params */
59
ngx_fd_t fd;
- u_char *buf; /* malloc'd */
60
+ u_char *buf;
61
size_t size;
62
off_t offset;
63
@@ -939,6 +941,7 @@ ngx_http_lua_fs_file_tostring(lua_State *L)
939
941
940
942
if (file->ref == NULL || file->ref->closed) {
943
lua_pushliteral(L, "file (closed)");
944
+
945
} else {
946
lua_pushfstring(L, "file (fd=%d)", file->ref->fd);
947
}
0 commit comments