*/
static const char *raw_init(void *frontend_handle, void **backend_handle,
Conf *conf,
- char *host, int port, char **realhost, int nodelay,
- int keepalive)
+ const char *host, int port, char **realhost,
+ int nodelay, int keepalive)
{
static const struct plug_function_table fn_table = {
raw_log,
raw->closed_on_socket_error = FALSE;
*backend_handle = raw;
raw->sent_console_eof = raw->sent_socket_eof = FALSE;
+ raw->bufsize = 0;
raw->frontend = frontend_handle;
/*
* Called to send data down the raw connection.
*/
-static int raw_send(void *handle, char *buf, int len)
+static int raw_send(void *handle, const char *buf, int len)
{
Raw raw = (Raw) handle;
raw_provide_logctx,
raw_unthrottle,
raw_cfg_info,
+ NULL /* test_for_upstream */,
"raw",
PROT_RAW,
0