Commit e379967c authored by Deucе's avatar Deucе 👌🏾
Browse files

Move some lines around to clamp sbbs->outbuf.highwater_mark at IO_THREAD_BUF_SIZE

parent e6a43947
Pipeline #3536 passed with stage
in 5 minutes and 23 seconds
......@@ -2326,13 +2326,13 @@ void output_thread(void* arg)
}
#endif
#endif
sbbs->outbuf.highwater_mark=i;
lprintf(LOG_DEBUG,"Autotuning outbuf highwater mark to %d based on MSS",i);
mss=sbbs->outbuf.highwater_mark;
if(mss>IO_THREAD_BUF_SIZE) {
mss=IO_THREAD_BUF_SIZE;
if(i>IO_THREAD_BUF_SIZE) {
lprintf(LOG_DEBUG,"MSS (%d) is higher than IO_THREAD_BUF_SIZE (%d)",i,IO_THREAD_BUF_SIZE);
i=IO_THREAD_BUF_SIZE;
}
sbbs->outbuf.highwater_mark=i;
mss=sbbs->outbuf.highwater_mark;
}
}
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment