Re: [Code] MAX_SOCK_BUF

From: Sam Ives (xym@CABLESPEED.COM)
Date: 02/24/03


>I have a question:
>#define MAX_SOCK_BUF (12*1024)
>#define LARGE_BUFSIZE ....

>Is MAX_SOCK_BUF arbitrary? can I change it? b/c I have some very elaborate
>builders and am running into troubles going over the limit when colorcodes
>are processed etc..

That depends on what buffer they are overflowing.  It could be the small
buffer as well, that they are hammering.

Seems to me that 12*1024 (12288) would be plenty for anything your builders
are trying to do, might want to look at what SMALL_BUFSIZE is set to.
couple others to check if your getting buffer overflow probs are the
LARGE_BUFSIZE, and MAX_STRING_LENGTH

as far as changing the MAX_SOC_BUF heard it was a no no....could be rumor
though

TriForia
telnet://tornwinds.dyndns.org:4000

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT