mirror of
git://erdgeist.org/opentracker
synced 2025-03-12 05:31:02 +00:00
Add connection id missmatch code
This commit is contained in:
parent
44e004ac9a
commit
ae16a23ae0
@ -59,6 +59,7 @@ static char * ot_failed_request_names[] = { "302 Redirect", "400 Par
|
|||||||
static unsigned long long ot_renewed[OT_PEER_TIMEOUT];
|
static unsigned long long ot_renewed[OT_PEER_TIMEOUT];
|
||||||
static unsigned long long ot_overall_sync_count;
|
static unsigned long long ot_overall_sync_count;
|
||||||
static unsigned long long ot_overall_stall_count;
|
static unsigned long long ot_overall_stall_count;
|
||||||
|
static unsigned long long g_stats_connid_missmatches;
|
||||||
|
|
||||||
static time_t ot_start_time;
|
static time_t ot_start_time;
|
||||||
|
|
||||||
@ -723,6 +724,8 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event
|
|||||||
pthread_mutex_unlock( &g_woodpeckers_mutex );
|
pthread_mutex_unlock( &g_woodpeckers_mutex );
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
case EVENT_CONNID_MISSMATCH:
|
||||||
|
++g_stats_connid_missmatches;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,8 @@ typedef enum {
|
|||||||
EVENT_FULLSCRAPE, /* TCP only */
|
EVENT_FULLSCRAPE, /* TCP only */
|
||||||
EVENT_FAILED,
|
EVENT_FAILED,
|
||||||
EVENT_BUCKET_LOCKED,
|
EVENT_BUCKET_LOCKED,
|
||||||
EVENT_WOODPECKER
|
EVENT_WOODPECKER,
|
||||||
|
EVENT_CONNID_MISSMATCH
|
||||||
} ot_status_event;
|
} ot_status_event;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user