reduced socket buffer size
This commit is contained in:
@@ -95,6 +95,13 @@ caStatus casDGIntfIO::init(const caNetAddr &addr, unsigned connectWithThisPortIn
|
||||
return S_cas_internal;
|
||||
}
|
||||
|
||||
/*
|
||||
* some concern that vxWorks will run out of mBuf's
|
||||
* if this change is made
|
||||
*
|
||||
* joh 11-10-98
|
||||
*/
|
||||
#if 0
|
||||
{
|
||||
/*
|
||||
*
|
||||
@@ -116,6 +123,7 @@ caStatus casDGIntfIO::init(const caNetAddr &addr, unsigned connectWithThisPortIn
|
||||
"CAS: unable to set cast socket size\n");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* release the port in case we exit early. Also if
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
//
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.16 1998/06/16 02:35:52 jhill
|
||||
// use aToIPAddr and auto attach to winsock if its a static build
|
||||
//
|
||||
// Revision 1.15 1998/05/29 20:08:21 jhill
|
||||
// use new sock ioctl() typedef
|
||||
//
|
||||
@@ -114,7 +117,13 @@ caStatus casStreamIO::init()
|
||||
return S_cas_internal;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* some concern that vxWorks will run out of mBuf's
|
||||
* if this change is made
|
||||
*
|
||||
* joh 11-10-98
|
||||
*/
|
||||
#if 0
|
||||
/*
|
||||
* set TCP buffer sizes to be synergistic
|
||||
* with CA internal buffering
|
||||
@@ -141,6 +150,7 @@ caStatus casStreamIO::init()
|
||||
ca_printf("CAS: SO_RCVBUF set failed\n");
|
||||
return S_cas_internal;
|
||||
}
|
||||
#endif
|
||||
|
||||
this->sockState = casOnLine;
|
||||
|
||||
|
||||
@@ -129,6 +129,13 @@ FAST int sock;
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
/*
|
||||
* some concern that vxWorks will run out of mBuf's
|
||||
* if this change is made
|
||||
*
|
||||
* joh 11-10-98
|
||||
*/
|
||||
#if 0
|
||||
/*
|
||||
* set TCP buffer sizes to be synergistic
|
||||
* with CA internal buffering
|
||||
@@ -169,6 +176,7 @@ FAST int sock;
|
||||
close(sock);
|
||||
return ERROR;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* performed in two steps purely for
|
||||
|
||||
+24
-25
@@ -138,32 +138,31 @@ int cast_server(void)
|
||||
taskSuspend(taskIdSelf());
|
||||
}
|
||||
|
||||
{
|
||||
/*
|
||||
*
|
||||
* this allows for faster connects by queuing
|
||||
* additional incomming UDP search frames
|
||||
*
|
||||
* this allocates a 32k buffer
|
||||
* (uses a power of two)
|
||||
*/
|
||||
int size = 1u<<15u;
|
||||
status = setsockopt(
|
||||
IOC_cast_sock,
|
||||
SOL_SOCKET,
|
||||
SO_RCVBUF,
|
||||
(char *)&size,
|
||||
sizeof(size));
|
||||
if (status<0) {
|
||||
/*
|
||||
* some concern that vxWorks will run out of mBuf's
|
||||
* if this change is made
|
||||
*
|
||||
* joh 11-10-98
|
||||
*/
|
||||
#if 0
|
||||
{
|
||||
/*
|
||||
*
|
||||
* this allows for faster connects by queuing
|
||||
* additional incomming UDP search frames
|
||||
*
|
||||
* this allocates a 32k buffer
|
||||
* (uses a power of two)
|
||||
*/
|
||||
int size = 1u<<15u;
|
||||
status = setsockopt (IOC_cast_sock, SOL_SOCKET,
|
||||
SO_RCVBUF, (char *)&size, sizeof(size));
|
||||
if (status<0) {
|
||||
logMsg("CAS: unable to set cast socket size\n",
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Zero the sock_addr structure */
|
||||
bfill((char *)&sin, sizeof(sin), 0);
|
||||
|
||||
Reference in New Issue
Block a user