Skip to content
Snippets Groups Projects
Commit e379967c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

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

parent e6a43947
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3536 passed
......@@ -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
......
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