Usermode/AxWin3 - Fixed dropped messages due to small buffer size
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / ipc_acess.c
index 26f60a2..700b60f 100644 (file)
@@ -12,7 +12,7 @@
 #include <string.h>
 
 // === CONSTANTS ===
-#define STATICBUF_SIZE 64
+#define STATICBUF_SIZE 256
 #define AXWIN_PORT     4101
 
 // === PROTOTYPES ===
@@ -198,8 +198,10 @@ int IPC_Type_IPCPipe_Compare(const void *Ident1, const void *Ident2)
 }
 void IPC_Type_IPCPipe_Send(const void *Ident, size_t Length, const void *Data)
 {
-       size_t rv = _SysWrite( *(const int*)Ident, Data, Length );
+        int    fd = *(const int*)Ident;
+       size_t rv = _SysWrite( fd, Data, Length );
        if(rv != Length) {
-               _SysDebug("Sent message oversize %x", Length);
+               _SysDebug("Message send for IPCPipe FD %i %i req, %i sent",
+                       fd, Length, rv);
        }
 }

UCC git Repository :: git.ucc.asn.au