Commit 9916bca5 authored by 's avatar
Browse files

fix

git-svn-id: file:///home/svn/mapi/trunk@568 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent f385644f
...@@ -143,7 +143,7 @@ void *mapiipc_comm_thread(void *host) { ...@@ -143,7 +143,7 @@ void *mapiipc_comm_thread(void *host) {
while (1) { while (1) {
if (dbuf_bytes==0 || dbuf_bytes<dbuf->length) { if (dbuf_bytes==0 || (dbuf->length<DIMAPI_DATA_SIZE && dbuf_bytes<dbuf->length)) {
if (host==NULL) return NULL; if (host==NULL) return NULL;
recv_bytes=recv(sockfd, (char*)&buffer+dbuf_bytes, DIMAPI_DATA_SIZE, 0); recv_bytes=recv(sockfd, (char*)&buffer+dbuf_bytes, DIMAPI_DATA_SIZE, 0);
if (recv_bytes == -1) { if (recv_bytes == -1) {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#define MAX_SEND_SIZE 8192//1024 #define MAX_SEND_SIZE 8192//1024
#define FUNCTARGS_BUF_SIZE 7168 #define FUNCTARGS_BUF_SIZE 7168
#define DATA_SIZE 7168 #define DATA_SIZE 7168
#define DIMAPI_DATA_SIZE 7168 #define DIMAPI_DATA_SIZE 50000
#define FUNCT_NAME_LENGTH 256 #define FUNCT_NAME_LENGTH 256
#define ARG_LENGTH 32 #define ARG_LENGTH 32
#define MAPIDSOCKHOME "%s/.mapid.sock" #define MAPIDSOCKHOME "%s/.mapid.sock"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment