Fixing stomp_writable() check so we can catch when connect failed.
parent
15a3b9a059
commit
eb55496781
2
stomp.c
2
stomp.c
|
@ -181,7 +181,7 @@ int stomp_writable(stomp_t *stomp)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
n = php_pollfd_for_ms(stomp->fd, POLLOUT, 1000);
|
n = php_pollfd_for_ms(stomp->fd, POLLOUT, 1000);
|
||||||
if (n < 1) {
|
if (n != POLLOUT) {
|
||||||
#ifndef PHP_WIN32
|
#ifndef PHP_WIN32
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
errno = ETIMEDOUT;
|
errno = ETIMEDOUT;
|
||||||
|
|
Loading…
Reference in New Issue