From eb554967811ed2f15c3ee96ec13630047777c635 Mon Sep 17 00:00:00 2001 From: Gennady Feldman Date: Fri, 5 Jun 2015 12:54:13 -0400 Subject: [PATCH] Fixing stomp_writable() check so we can catch when connect failed. --- stomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stomp.c b/stomp.c index 5dfd731..a146243 100644 --- a/stomp.c +++ b/stomp.c @@ -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;