mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
CLEANUP: muxes: Remove useless calls to b_realign_if_empty()
In H1, H2 and FCGI muxes, b_realign_if_empty() is called to reset the head of an empty buffer before setting it a specific value to permit the zero-copy. Thus, we can remove call to b_realign_if_empty().
This commit is contained in:
parent
38cd986c54
commit
0aeaa290da
@ -2788,7 +2788,6 @@ static int fcgi_recv(struct fcgi_conn *fconn)
|
||||
return 0;
|
||||
}
|
||||
|
||||
b_realign_if_empty(buf);
|
||||
if (!b_data(buf)) {
|
||||
/* try to pre-align the buffer like the
|
||||
* rxbufs will be to optimize memory copies. We'll make
|
||||
|
@ -2547,7 +2547,6 @@ static int h1_recv(struct h1c *h1c)
|
||||
TRACE_STATE("h1c ibuf not full anymore", H1_EV_H1C_RECV|H1_EV_H1C_BLK);
|
||||
}
|
||||
|
||||
b_realign_if_empty(&h1c->ibuf);
|
||||
if (!b_data(&h1c->ibuf)) {
|
||||
/* try to pre-align the buffer like the rxbufs will be
|
||||
* to optimize memory copies.
|
||||
|
@ -3617,7 +3617,6 @@ static int h2_recv(struct h2c *h2c)
|
||||
return 0;
|
||||
}
|
||||
|
||||
b_realign_if_empty(buf);
|
||||
if (!b_data(buf)) {
|
||||
/* try to pre-align the buffer like the
|
||||
* rxbufs will be to optimize memory copies. We'll make
|
||||
|
Loading…
x
Reference in New Issue
Block a user