Skip to content

Commit

Permalink
change default keepalive 0 -> 60 in connect function, as written in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
argakon committed Oct 18, 2016
1 parent 511f8ba commit cb35d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mosquitto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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!",
Expand Down

0 comments on commit cb35d7b

Please sign in to comment.