Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
78cc6f60
Commit
78cc6f60
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/xtrn.cpp
+8
-2
8 additions, 2 deletions
src/sbbs3/xtrn.cpp
with
8 additions
and
2 deletions
src/sbbs3/xtrn.cpp
+
8
−
2
View file @
78cc6f60
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment