I discovered the serious problem for XMail ver 1.3, 1.4. 

In the present version, when sending huge mail, lack of data
may be produced between low speed connection places. 

A problem is avoidable by performing the following corrections. 

In addition, this problem is a problem common to all platforms. 

diff -uNr xmail-1.4/SysDepWin.cpp xmail-1.4.w32/SysDepWin.cpp
--- xmail-1.4/SysDepWin.cpp     Sat Jan 19 09:14:20 2002
+++ xmail-1.4.w32/SysDepWin.cpp Tue Feb 05 09:15:13 2002
@@ -50,6 +50,7 @@
 
 #define SAIN_Addr(s)                    (s).sin_addr.S_un.S_addr
 
+#define MIN_BYTES_SEC_TIMEOUT           64
 #define TCP_SEND_SIZE                   (1024 * 128)
 
 #define MAX_STACK_SHIFT                 2048
@@ -985,7 +986,12 @@
     {
         int             iCurrSend = (int) Min(iSndBuffSize, 
ullEndOffset - ullCurrOffset);
 
+#if 1  /* by senshu (2002-4-Feb) */
+        if ((iCurrSend = SysSendData(SockFD, pszBuffer, iCurrSend,
+                                Max(iTimeout, iCurrSend / MIN_BYTES_SEC
_TIMEOUT))) < 0)
+#else
         if ((iCurrSend = SysSendData(SockFD, pszBuffer, iCurrSend, 
iTimeout)) < 0)
+#endif
         {
             ErrorPush();
             UnmapViewOfFile(pAddress);


--
Shonai College of Industry and Technology.
Electronics and Computer Information Course.
E-mail: [EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to