a18cdd4441c5dfa23fd9112d12e01f1123568519 galt Mon Nov 5 13:13:03 2012 -0800 removing the new connFailures capability. it is difficult to distinguish failing sites from struggling sites with this approach -- so leave it out for now. diff --git src/inc/net.h src/inc/net.h index 2217878..d84d599 100644 --- src/inc/net.h +++ src/inc/net.h @@ -1,44 +1,29 @@ /* Net.h some stuff to wrap around net communications. * * This file is copyright 2002 Jim Kent, but license is hereby * granted for all use - public, private or commercial. */ #ifndef NET_H #define NET_H #include "linefile.h" #include "dystring.h" #define DEFAULTCONNECTTIMEOUTMSEC 10000 /* default connect timeout for tcp in milliseconds */ -void setConnFailuresEnabled(boolean val); -/* Turn on or off the connFailures feature */ - -boolean checkConnFailure(char *hostName, int port, char **pErrStr); -/* check if this hostName:port has already had failure - * which can save time and avoid more timeouts */ - -void addConnFailure(char *hostName, int port, char *format, ...) -/* add a failure to connFailures[] - * which can save time and avoid more timeouts */ -#if defined(__GNUC__) -__attribute__((format(printf, 3, 4))) -#endif -; - /* add a failure to connFailures[] * which can save time and avoid more timeouts */ int netConnect(char *hostName, int port); /* Start connection with a server having resolved port. Return < 0 if error. */ int netMustConnect(char *hostName, int port); /* Start connection with server or die. */ int netMustConnectTo(char *hostName, char *portName); /* Start connection with a server and a port that needs to be converted to integer */ int netAcceptingSocket(int port, int queueSize); /* Create a socket for to accept connections. */ int netAcceptingSocketFrom(int port, int queueSize, char *host);