Add command queue prepend, prioritize PING/PONG
authorShane Synan <digitalcircuit36939@gmail.com>
Wed, 1 Jun 2016 23:00:38 +0000 (19:00 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Feb 2018 22:09:01 +0000 (23:09 +0100)
commit106d151d994fb26fd4586c6adf60a165075961a9
tree66d57f904238343c7a7c4c33a8c48948fd476ba0
parent1fef363db1400339991e2531ffb66fb1005a23f8
Add command queue prepend, prioritize PING/PONG

Add optional flag to putRawLine and putCmd to put any given lines or
commands to the front of the queue (prepend instead of append).

Enable queue prepend for sending PINGs and PONG replies.  This fixes
the issue where Quassel will ping-timeout when trying to send huge
messages (e.g. 40 lines at once), or multiple commands.

Unfortunately, some IRC servers don't behave properly so Quassel may
still get disconnected.  Hopefully other servers will get fixed soon.

Add more documentation, of course.  Document all the things!

(cherry picked from commit 45a0d954542db252ceb62b61243ee5c2253383de)
src/core/corebasichandler.cpp
src/core/corebasichandler.h
src/core/corenetwork.cpp
src/core/corenetwork.h
src/core/coresessioneventprocessor.cpp
src/core/coreuserinputhandler.cpp