@@ -117,7 +117,7 @@ PHP_INI_BEGIN()
117
117
STD_PHP_INI_ENTRY ("tarantool.request_timeout" , "3600.0" , PHP_INI_ALL ,
118
118
OnUpdateReal , request_timeout , zend_tarantool_globals ,
119
119
tarantool_globals )
120
- STD_PHP_INI_ENTRY ("tarantool.retry_count" , "1 " , PHP_INI_ALL ,
120
+ STD_PHP_INI_ENTRY ("tarantool.retry_count" , "0 " , PHP_INI_ALL ,
121
121
OnUpdateLong , retry_count , zend_tarantool_globals ,
122
122
tarantool_globals )
123
123
STD_PHP_INI_ENTRY ("tarantool.retry_sleep" , "10" , PHP_INI_ALL ,
@@ -251,7 +251,9 @@ static int __tarantool_connect(tarantool_object *t_obj) {
251
251
TSRMLS_FETCH ();
252
252
tarantool_connection * obj = t_obj -> obj ;
253
253
int status = SUCCESS ;
254
- long count = TARANTOOL_G (retry_count );
254
+ /* retry_count always 1 more than count of tries, since retry count
255
+ * is number of retries*/
256
+ long count = TARANTOOL_G (retry_count ) + 1 ;
255
257
struct timespec sleep_time = {0 };
256
258
double_to_ts (INI_FLT ("retry_sleep" ), & sleep_time );
257
259
char * err = NULL ;
0 commit comments