mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-24 19:11:00 +01:00
MINOR: stream-int: add si_done_{get,put} to indicate that we won't do it anymore
This is useful on close or stream aborts as it saves us from having to manipulate the (sometimes confusing) flags.
This commit is contained in:
parent
0cd3bd628a
commit
394970c297
@ -266,6 +266,12 @@ static inline void si_stop_put(struct stream_interface *si)
|
||||
si->flags &= ~SI_FL_WANT_PUT;
|
||||
}
|
||||
|
||||
/* Report that a stream interface won't put any more data into the input buffer */
|
||||
static inline void si_done_put(struct stream_interface *si)
|
||||
{
|
||||
si->flags &= ~(SI_FL_WANT_PUT | SI_FL_WAIT_ROOM);
|
||||
}
|
||||
|
||||
/* Report that a stream interface wants to get some data from the output buffer */
|
||||
static inline void si_want_get(struct stream_interface *si)
|
||||
{
|
||||
@ -284,6 +290,12 @@ static inline void si_stop_get(struct stream_interface *si)
|
||||
si->flags &= ~SI_FL_WANT_GET;
|
||||
}
|
||||
|
||||
/* Report that a stream interface won't get any more data from the output buffer */
|
||||
static inline void si_done_get(struct stream_interface *si)
|
||||
{
|
||||
si->flags &= ~(SI_FL_WANT_GET | SI_FL_WAIT_DATA);
|
||||
}
|
||||
|
||||
/* Try to allocate a new conn_stream and assign it to the interface. If
|
||||
* an endpoint was previously allocated, it is released first. The newly
|
||||
* allocated conn_stream is initialized, assigned to the stream interface,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user