Fixed bug #60146 (Last 2 lines of page not being output)

This commit is contained in:
Xinchen Hui 2011-10-29 02:14:04 +00:00
parent 7002ec3723
commit 091f279eb0
2 changed files with 2 additions and 1 deletions

View file

@ -1579,7 +1579,7 @@ static size_t php_cli_server_client_send_through(php_cli_server_client *client,
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) {
if (err == SOCK_EAGAIN) {
int nfds = php_pollfd_for(client->sock, POLLOUT, &tv);
if (nfds > 0) {
continue;