Skip to content
Snippets Groups Projects
Commit 546725fc authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Increase buffer size from 4096 to 10000 in handle_call()

Log errors if/when comWriteBuf() fails.

This is to hopefully help to root-cause or even possibly resolve the issue
reported in #synchronet by PyRoDrAkE:
"It all works well until the Dialup connection runs slower than 4800 baud
using SexPots. I connect from my XT at either 1200 baud or 2400 baud and it
would just stop drawing midway."

There shouldn't be any write timeout in comWriteBuf(), so I don't know why
this would help, but it's worth a try. Logging any comWriteBuf() errors is
also a good idea in general.
parent f78d5395
No related branches found
No related tags found
No related merge requests found
Pipeline #8690 failed
......@@ -1286,7 +1286,7 @@ void debug_log_com_write(BYTE* buf, int len)
/****************************************************************************/
BOOL handle_call(void)
{
BYTE buf[4096];
BYTE buf[10000];
BYTE telnet_buf[sizeof(buf)];
BYTE* p;
int result;
......@@ -1361,7 +1361,9 @@ BOOL handle_call(void)
else
p=buf;
if((wr=comWriteBuf(com_handle, p, rd)) != COM_ERROR) {
if((wr=comWriteBuf(com_handle, p, rd)) == COM_ERROR)
lprintf(LOG_WARNING, "%s Error sending %d bytes to COM port", __FUNCTION__, rd);
else {
if(com_debug)
debug_log_com_write(p, wr);
bytes_sent += wr;
......
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