Mac only I/O buffer size increases

This commit is contained in:
saari%netscape.com 1998-08-12 21:30:26 +00:00
Родитель da4a394f63
Коммит 976bf283da
2 изменённых файлов: 14 добавлений и 7 удалений

4
network/cache/mkmemcac.c поставляемый
Просмотреть файл

@ -68,7 +68,7 @@ extern int MK_OUT_OF_MEMORY;
#ifdef XP_WIN16
#define MAX_MEMORY_ALLOC_SIZE 32767 /* MAXINT */
#elif defined(XP_MAC)
#define MAX_MEMORY_ALLOC_SIZE 12*1024
#define MAX_MEMORY_ALLOC_SIZE 64*1024
#else
#define MAX_MEMORY_ALLOC_SIZE (((unsigned) (~0) << 1) >> 1) /* MAXINT */
@ -81,7 +81,7 @@ extern int MK_OUT_OF_MEMORY;
* the cache object in memory
*/
#ifdef XP_MAC
#define MEMORY_CACHE_SEGMENT_SIZE 12*1024
#define MEMORY_CACHE_SEGMENT_SIZE 64*1024
#else
#define MEMORY_CACHE_SEGMENT_SIZE 2048
#endif

Просмотреть файл

@ -119,11 +119,18 @@ NET_ChangeSocketBufferSize (int size)
{
NET_Socket_Buffer_Size = 0;
#if !defined(XP_MAC)
if(size < 1)
size = 10*1024; /* default */
if(size > 31*1024)
size = 31*1024;
#else
/* On the Mac we want a biiiig buffer */
if (size < 1 || size > 64*1024)
size = 64*1024;
#endif /* XP_MAC */
#if defined(XP_UNIX) && defined(XP_BSD_UNIX)
FREEIF(net_real_socket_buffer_ptr);