From: Alan T. DeKok Date: Wed, 27 Sep 2017 19:13:53 +0000 (-0400) Subject: use new read_pause / read_continue routines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de5dd884c41db425896b83bb04c8bf9af48d812b;p=thirdparty%2Ffreeradius-server.git use new read_pause / read_continue routines --- diff --git a/src/modules/proto_detail/proto_detail_file.c b/src/modules/proto_detail/proto_detail_file.c index 1d6c0c70f65..1fd1be3328e 100644 --- a/src/modules/proto_detail/proto_detail_file.c +++ b/src/modules/proto_detail/proto_detail_file.c @@ -382,6 +382,10 @@ done: */ inst->last_search = 0; + if (fr_event_fd_read_pause(inst->el, inst->fd) < 0) { + DEBUG("FAILED pausing read: %s", fr_strerror()); + } + MPRINT("Returning NUM %d - %.*s", inst->outstanding, (int) packet_len, buffer); return packet_len; } @@ -397,6 +401,10 @@ static ssize_t mod_write(void *instance, void *packet_ctx, rad_assert(inst->outstanding > 0); inst->outstanding--; + if (fr_event_fd_read_continue(inst->el, inst->fd) < 0) { + DEBUG("FAILED continuing read: %s", fr_strerror()); + } + if (buffer[0] == 0) { DEBUG("Got Do-Not-Respond, not writing reply");