Skip to content
Snippets Groups Projects
Commit 78cc6f60 authored by rswindell's avatar rswindell
Browse files

No longer reports buffer full errors.

Only allow output buffer to fill 50% from VXD before wwiv/telnet expansion.
parent a9324b2c
No related branches found
No related tags found
No related merge requests found
......@@ -705,9 +705,11 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
rd=0;
len=sizeof(buf);
avail=RingBufFree(&outbuf)/2; // leave room for wwiv/telnet expansion
#if 0
if(avail==0)
lprintf("Node %d !output buffer full (%u bytes)"
,cfg.node_num,RingBufFull(&outbuf));
#endif
if(len>avail)
len=avail;
......@@ -782,14 +784,16 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
/* Read from VXD */
rd=0;
len=sizeof(buf);
avail=RingBufFree(&outbuf);
avail=RingBufFree(&outbuf)/2; // leave room for wwiv/telnet expansion
#if 0
if(avail==0)
lprintf("Node %d !output buffer full (%u bytes)"
,cfg.node_num,RingBufFull(&outbuf));
#endif
if(len>avail)
len=avail;
if(avail>=RingBufFull(&outbuf)) {
if(len) {
if(!DeviceIoControl(
vxd, // handle to device of interest
SBBSEXEC_IOCTL_READ, // control code of operation to perform
......@@ -1171,8 +1175,10 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
avail=RingBufFree(&outbuf)/2; // Leave room for wwiv/telnet expansion
if(avail==0) {
#if 0
lprintf("Node %d !output buffer full (%u bytes)"
,cfg.node_num,RingBufFull(&outbuf));
#endif
mswait(1);
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment