Commit d0e11c7
committed
net_irc: Explicitly flush IRC channel logs at least occasionally.
It's a bad idea to flush writes for every single write, as that
would have a significant performance impact for busy channels.
However, for channels that aren't busy, a FILE*'s internal buffer
may be large enough that it could be a very long time before
buffered writes are flushed if we don't flush explicitly.
If it's been a while since data was flushed to the log file,
then go ahead and explicitly flush it.1 parent da98562 commit d0e11c7
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| |||
1188 | 1189 | | |
1189 | 1190 | | |
1190 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
1191 | 1200 | | |
1192 | 1201 | | |
1193 | 1202 | | |
| |||
0 commit comments