File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ static int __tarantool_connect(tarantool_object *t_obj) {
225
225
TSRMLS_FETCH ();
226
226
tarantool_connection * obj = t_obj -> obj ;
227
227
int status = SUCCESS ;
228
- long count = TARANTOOL_G (retry_count );
228
+ long count = TARANTOOL_G (retry_count ) + 1 ;
229
229
struct timespec sleep_time = {0 };
230
230
double_to_ts (INI_FLT ("retry_sleep" ), & sleep_time );
231
231
char * err = NULL ;
Original file line number Diff line number Diff line change @@ -211,4 +211,13 @@ public function test_09_parse_uri_compatibility() {
211
211
$ c ->close ();
212
212
}
213
213
}
214
+
215
+ public function test_10_zero_retry_exception () {
216
+ $ t = static ::connectTarantool ();
217
+ $ rc = ini_get ('tarantool.retry_count ' );
218
+
219
+ ini_set ('tarantool.retry_count ' , 0 );
220
+ $ this ->assertEquals ($ t ->ping (), true );
221
+ ini_set ('tarantool.retry_count ' , $ rc );
222
+ }
214
223
}
You can’t perform that action at this time.
0 commit comments