summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb21eef)
raw | patch | inline | side by side (parent: cb21eef)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 14 May 2014 19:03:43 +0000 (21:03 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 14 May 2014 19:03:43 +0000 (21:03 +0200) |
This will free up buffer space if possible.
src/frontend/connection.c | patch | blob | history |
index dba431049ac8af878f2c6df85779d57012531218..7cc1ae3544e654ccc362bff0d5c8d213a0a65695 100644 (file)
}
n += status;
+
+ /* give the main loop a chance to execute commands (and free up buffer
+ * space) on large amounts of incoming traffic */
+ if (n > 1024 * 1024)
+ break;
}
return n;