]> arthur.barton.de Git - ngircd-alex.git/commit
Handle commands in the read buffer before reading more data
authorAlexander Barton <alex@barton.de>
Fri, 1 May 2020 21:55:28 +0000 (23:55 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 3 May 2020 22:46:56 +0000 (00:46 +0200)
commit54fac576030d7aaf8bce4a982c880fe18680741e
tree7715b4df4c1ffecb7161f0999422af77af11c65a
parent9f05f5ee61d23292d55edef09439c38936b86037
Handle commands in the read buffer before reading more data

If there are more bytes in the read buffer already than a single valid
IRC command can get long (513 bytes, COMMAND_LEN), wait for this/those
command(s) to be handled first and don't try to read even more data from
the network (which most probably would overflow the read buffer of this
connection soon).
src/ngircd/conn.c