From c4523cbe1970cfec46584182d6db0e63c8d091b8 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 23 Aug 2004 05:24:21 +0000 Subject: [PATCH] Changed number of queueable messages to the library from 8192 to 128 messages. (Logical change 1.58) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@199 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/main.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/exec/main.h b/exec/main.h index 55aba973..52f55fd2 100644 --- a/exec/main.h +++ b/exec/main.h @@ -48,7 +48,7 @@ /* * Size of the queue (entries) for I/O's to the API over socket IPC. */ -#define SIZEQUEUE 8192 +#define SIZEQUEUE 128 enum socket_service_type { SOCKET_SERVICE_INIT, @@ -89,9 +89,15 @@ struct outq_item { #define SIZEINB MESSAGE_SIZE_MAX +enum conn_state { + CONN_STATE_ACTIVE, + CONN_STATE_DISCONNECTING, + CONN_STATE_DISCONNECTING_DELAYED +}; + struct conn_info { int fd; /* File descriptor for this connection */ - int active; /* Does this file descriptor have an active connection */ + enum conn_state state; /* State of this connection */ char *inb; /* Input buffer for non-blocking reads */ int inb_nextheader; /* Next message header starts here */ int inb_start; /* Start location of input buffer */