修正 fail_time_window 秒内 suspect_pinning_count 和 protocol_error_count 持续累计不归零的 bug
This commit is contained in:
@@ -146,10 +146,11 @@ static long cli_st_write_cb(void * data, const uchar * key, uint size, void * us
|
||||
{
|
||||
cli_st=ALLOC(struct ssl_svc_client_st, 1);
|
||||
cli_st->ref_svc_cache=cache;
|
||||
cli_st->last_update_time = now;
|
||||
ret = MESA_htable_add(cache->cli_st_hash, key, size, cli_st);
|
||||
assert(ret >= 0);
|
||||
}
|
||||
if(cli_st->last_update_time-now>cache->fail_time_window)
|
||||
if (now - cli_st->last_update_time > cache->fail_time_window)
|
||||
{
|
||||
if(cli_st->suspect_pinning_count<cache->fail_as_pinning_count) cli_st->suspect_pinning_count=0;
|
||||
if(cli_st->protocol_error_count<cache->fail_as_proto_err_count) cli_st->protocol_error_count=0;
|
||||
|
||||
Reference in New Issue
Block a user