Mercurial > vim
comparison src/proto/channel.pro @ 10426:acfc83aca8ee v8.0.0107
commit https://github.com/vim/vim/commit/958dc6923d341390531888058495569d73c356c3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 1 15:34:12 2016 +0100
patch 8.0.0107
Problem: When reading channel output in a timer, messages may go missing.
(Skywind)
Solution: Add the "drop" option. Write error messages in the channel log.
Don't have ch_canread() check for the channel being open.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 01 Dec 2016 15:45:04 +0100 |
parents | e664ee056a84 |
children | 3b2afa2b77b3 |
comparison
equal
deleted
inserted
replaced
10425:a4e378d55cc1 | 10426:acfc83aca8ee |
---|---|
31 void channel_close(channel_T *channel, int invoke_close_cb); | 31 void channel_close(channel_T *channel, int invoke_close_cb); |
32 void channel_close_in(channel_T *channel); | 32 void channel_close_in(channel_T *channel); |
33 void channel_clear(channel_T *channel); | 33 void channel_clear(channel_T *channel); |
34 void channel_free_all(void); | 34 void channel_free_all(void); |
35 char_u *channel_read_block(channel_T *channel, ch_part_T part, int timeout); | 35 char_u *channel_read_block(channel_T *channel, ch_part_T part, int timeout); |
36 int channel_read_json_block(channel_T *channel, ch_part_T part, int timeout_arg, int id, typval_T **rettv); | |
37 void common_channel_read(typval_T *argvars, typval_T *rettv, int raw); | 36 void common_channel_read(typval_T *argvars, typval_T *rettv, int raw); |
38 channel_T *channel_fd2channel(sock_T fd, ch_part_T *partp); | 37 channel_T *channel_fd2channel(sock_T fd, ch_part_T *partp); |
39 void channel_handle_events(void); | 38 void channel_handle_events(void); |
40 int channel_send(channel_T *channel, ch_part_T part, char_u *buf, int len, char *fun); | 39 int channel_send(channel_T *channel, ch_part_T part, char_u *buf, int len, char *fun); |
41 void ch_expr_common(typval_T *argvars, typval_T *rettv, int eval); | 40 void ch_expr_common(typval_T *argvars, typval_T *rettv, int eval); |