close stdin after writing request body
This commit is contained in:
parent
76ac3d382d
commit
b2d707796e
@ -460,7 +460,11 @@ static void fcgi_cgi_received_stdin(fastcgi_connection *fcon, GByteArray *data)
|
|||||||
if (data) g_byte_array_free(data, TRUE);
|
if (data) g_byte_array_free(data, TRUE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (NULL != data) {
|
||||||
fastcgi_queue_append_bytearray(&cld->write_queue, data);
|
fastcgi_queue_append_bytearray(&cld->write_queue, data);
|
||||||
|
} else {
|
||||||
|
cld->write_queue.closed = TRUE;
|
||||||
|
}
|
||||||
write_queue(cld); /* if we don't call this we have to check the write-queue length */
|
write_queue(cld); /* if we don't call this we have to check the write-queue length */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user