102 * current writebuf pos (writebuf_size - write_buf_pos = remaining) |
102 * current writebuf pos (writebuf_size - write_buf_pos = remaining) |
103 */ |
103 */ |
104 size_t writebuf_pos; |
104 size_t writebuf_pos; |
105 |
105 |
106 /* |
106 /* |
|
107 * number of bytes of the response body sent to the client |
|
108 * at the end count_write should have the same value as parser->response_length |
|
109 */ |
|
110 size_t count_write; |
|
111 |
|
112 /* |
107 * poll_out event active |
113 * poll_out event active |
108 */ |
114 */ |
109 WSBool poll_out; |
115 WSBool poll_out; |
110 |
116 |
111 /* |
117 /* |
|
118 * last read returned EWOULDBLOCK |
|
119 * waiting for the next read event |
|
120 */ |
|
121 WSBool wait_read; |
|
122 |
|
123 /* |
112 * last write returned EWOULDBLOCK |
124 * last write returned EWOULDBLOCK |
113 * waiting for the next write event |
125 * waiting for the next write event |
114 */ |
126 */ |
115 WSBool wait_write; |
127 //WSBool wait_write; |
|
128 |
|
129 /* |
|
130 * cgi pipe (stdout) EOF |
|
131 */ |
|
132 WSBool cgi_eof; |
116 |
133 |
117 /* |
134 /* |
118 * number of currently open events (stdout, stderr, [stdout]) |
135 * number of currently open events (stdout, stderr, [stdout]) |
119 */ |
136 */ |
120 int events; |
137 int events; |