From cb35d7bcd5f5953b90051d934c06bba848c3bd85 Mon Sep 17 00:00:00 2001 From: Artem Mamonov Date: Tue, 18 Oct 2016 10:55:23 +0000 Subject: [PATCH] change default keepalive 0 -> 60 in connect function, as written in docs --- mosquitto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mosquitto.c b/mosquitto.c index 5b8ce48..b27d550 100644 --- a/mosquitto.c +++ b/mosquitto.c @@ -385,7 +385,7 @@ PHP_METHOD(Mosquitto_Client, connect) mosquitto_strlen_type host_len, interface_len; int retval; zend_long port = 1883; - zend_long keepalive = 0; + zend_long keepalive = 60; PHP_MOSQUITTO_ERROR_HANDLING(); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lls!",