commit | ab3e1d313cc581ffa96530579cfa6580b2248f50 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Jun 03 14:10:36 2007 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Jun 03 16:05:39 2007 +0200 |
tree | 34045058be2ca2d2e4ef3f472a2e9538dd7261a6 | |
parent | fa64558402913053c0559423590e667a2be27eac [diff] |
[MEDIUM] optimize I/O by detecting system starvation Compare the results of recv/send with the parameter passed and detect whether the system has no free buffer space for send() or has no data anymore for recv(). This dramatically reduces the number of syscalls (by about 23%).