9c9086191d7dd5a07302d91ee047f43e4a29f51f galt Fri Apr 16 18:01:48 2021 -0700 This is a better location for these constants that relate to clients connecting to the new dynamic-blat gfServers. refs #27355 diff --git src/inc/genoFind.h src/inc/genoFind.h index d9effbf..27f53ff 100644 --- src/inc/genoFind.h +++ src/inc/genoFind.h @@ -21,30 +21,40 @@ #include "aliType.h" #endif #ifndef LOCALMEM_H #include "localmem.h" #endif #ifndef BITS_H #include "bits.h" #endif #ifndef AXT_H #include "axt.h" #endif +/* for use in deciding what type of error message to output, typical + * network connection timeout is 120 seconds, if elapsed time to this + * error exit is > NET_TIMEOUT_MS, something is taking too long. + * On the other hand, if the QUICKEXIT time of < 500 ms is noted, then + * something else is wrong about the connection. + * (these are used in gfClient and hgBlat for dynamic blat server messages) + */ +#define NET_TIMEOUT_MS 110000 +#define NET_QUICKEXIT_MS 500 + struct gfConnection /* connection to a gfServer. This supports reuse of the connection for dynamic * servers and reopening a connection for static server. */ { int fd; // socket descriptor, -1 if closed char *hostName; // need when reconnecting int port; boolean isDynamic; // is this a dynamic server? char *genome; // genome name for dynamic server char *genomeDataDir; // genome data directory for dynamic server }; enum gfConstants { gfMinMatch = 2,