diff options
author | corvid <devnull@localhost> | 2014-08-08 01:14:52 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-08-08 01:14:52 +0000 |
commit | ffb8100ff3222e8aa11bd33a7c1ea7342f2c6aea (patch) | |
tree | bcb85bba820a9580b76259cd42ebaa91b87073d7 /src/IO/IO.c | |
parent | 0553cb9e777357d8d25819735503f3251198c27c (diff) |
abort failed queries
http://lists.dillo.org/pipermail/dillo-dev/2014-July/010190.html
and no one objected, and it hasn't given me any trouble, so...
Diffstat (limited to 'src/IO/IO.c')
-rw-r--r-- | src/IO/IO.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/IO/IO.c b/src/IO/IO.c index 43a3ff3a..0addf486 100644 --- a/src/IO/IO.c +++ b/src/IO/IO.c @@ -298,6 +298,8 @@ static void IO_fd_write_cb(int fd, void *data) } else { if (IO_callback(io) == 0) a_IOwatch_remove_fd(fd, DIO_WRITE); + if (io->Status) + a_IO_ccc(OpAbort, 1, FWD, io->Info, NULL, NULL); } } @@ -385,6 +387,13 @@ void a_IO_ccc(int Op, int Branch, int Dir, ChainLink *Info, } else { /* 1 FWD */ /* Write-data status */ switch (Op) { + case OpAbort: + io = Info->LocalKey; + IO_close_fd(io, IO_StopRdWr); + IO_free(io); + a_Chain_fcb(OpAbort, Info, NULL, NULL); + dFree(Info); + break; default: MSG_WARN("Unused CCC\n"); break; |