mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed Bug #55423(cli-server could not output correctly in some case)
This commit is contained in:
parent
b1263c4363
commit
66bcb34bf4
1 changed files with 1 additions and 1 deletions
|
@ -1542,7 +1542,7 @@ static size_t php_cli_server_client_send_through(php_cli_server_client *client,
|
|||
struct timeval tv = { 10, 0 };
|
||||
ssize_t nbytes_left = str_len;
|
||||
do {
|
||||
ssize_t nbytes_sent = send(client->sock, str, str_len, 0);
|
||||
ssize_t nbytes_sent = send(client->sock, str + str_len - nbytes_left, nbytes_left, 0);
|
||||
if (nbytes_sent < 0) {
|
||||
int err = php_socket_errno();
|
||||
if (err == EAGAIN) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue