Fixing stomp_writable() check so we can catch when connect failed.

master
Gennady Feldman 2015-06-05 12:54:13 -04:00
parent 15a3b9a059
commit eb55496781
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ int stomp_writable(stomp_t *stomp)
int n;
n = php_pollfd_for_ms(stomp->fd, POLLOUT, 1000);
if (n < 1) {
if (n != POLLOUT) {
#ifndef PHP_WIN32
if (n == 0) {
errno = ETIMEDOUT;