Просмотр исходного кода

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

Steven Dake 21 лет назад
Родитель
Сommit
c4523cbe19
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      exec/main.h

+ 8 - 2
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 */