Don't do a DNS lookup on every connection attempt, fix TCP disconnect detection
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#include "../deps/vector/vector.h"
|
||||
#include "util.h"
|
||||
|
||||
enum State { DOWN, PARTIAL, UP };
|
||||
enum State { NONE, DOWN, PARTIAL, UP };
|
||||
struct StatusPeroid;
|
||||
struct ServerStatus;
|
||||
struct EndpointStatus;
|
||||
@@ -63,6 +63,7 @@ struct Endpoint {
|
||||
double last_ping;
|
||||
Vector status_history;
|
||||
pthread_t thread;
|
||||
struct addrinfo* addr;
|
||||
int sockfd;
|
||||
int last_errno;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user