summaryrefslogtreecommitdiff
path: root/dpi/cookies.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-11-01 16:31:59 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-11-01 16:31:59 -0300
commit29ea3975335bad3fa72afe8c1724d1d00355c396 (patch)
treedf3d82747440f974b2803470be35ebfcf9eae15f /dpi/cookies.c
parentb643ca0bd58188da3dc98193f97fb220ab008983 (diff)
Implemented the file dpi based on select() (removed its pthreads dependency)
It should be faster and use less resources.
Diffstat (limited to 'dpi/cookies.c')
-rw-r--r--dpi/cookies.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dpi/cookies.c b/dpi/cookies.c
index 34cb222b..3cd3237c 100644
--- a/dpi/cookies.c
+++ b/dpi/cookies.c
@@ -1482,14 +1482,11 @@ int main(void) {
while (1) {
code = 1;
- if ((buf = a_Dpip_dsh_read_token(sh)) != NULL) {
+ if ((buf = a_Dpip_dsh_read_token(sh, 1)) != NULL) {
/* Let's see what we fished... */
_MSG(" buf = {%s}\n", buf);
code = srv_parse_tok(sh, client, buf);
dFree(buf);
- } else if (sh->status == DPIP_EAGAIN) {
- /* may reach here when the tag size is larger than kernel buffer */
- continue;
}
_MSG(" code = %d %s\n", code, code == 1 ? "EXIT" : "BREAK");