MEDIUM: stream-int: add a new function si_applet_done()
authorWilly Tarreau <w@1wt.eu>
Sun, 19 Apr 2015 13:16:35 +0000 (15:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2015 15:56:16 +0000 (17:56 +0200)
commite5f8649102f7a869addfa1abc425eb74208663b3
treee087a1e07d77e320cf237b165a6d71832e473304
parent3c595ac3adf49abd305efbab4a7b11175d10cb0e
MEDIUM: stream-int: add a new function si_applet_done()

This is the equivalent of si_conn_wake() but for applets. It will be
called after changes to the stream interface are brought by the applet
I/O handler. Ultimately it will release buffers and may be even wake
the stream's task up if some important changes are detected.

It would be nice to be able to merge it with the connection's wake
function since it mostly manipulates the stream interface, but there
are minor differences (such as how to enable/disable polling on a fd
vs applet) and some specificities to applets (eg: don't wake the
applet up until the output is empty) which would require abstract
functions which would slow down everything.
include/proto/stream_interface.h
src/stream_interface.c