Mercurial > vim
comparison src/os_win32.c @ 10406:42911b233245 v8.0.0097
commit https://github.com/vim/vim/commit/833eb1d752426689051bf2001083359899536939
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 24 17:22:50 2016 +0100
patch 8.0.0097
Problem: When a channel callback consumes a lot of time Vim becomes
unresponsive. (skywind)
Solution: Bail out of checking channel readahead after 100 msec.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 24 Nov 2016 17:30:04 +0100 |
parents | 17165aabc731 |
children | 56cb9538386c |
comparison
equal
deleted
inserted
replaced
10405:4d35d83f4537 | 10406:42911b233245 |
---|---|
4285 if (ta_len == 0) | 4285 if (ta_len == 0) |
4286 { | 4286 { |
4287 /* Get extra characters when we don't have any. Reset the | 4287 /* Get extra characters when we don't have any. Reset the |
4288 * counter and timer. */ | 4288 * counter and timer. */ |
4289 noread_cnt = 0; | 4289 noread_cnt = 0; |
4290 # if defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H) | |
4291 gettimeofday(&start_tv, NULL); | |
4292 # endif | |
4293 len = ui_inchar(ta_buf, BUFLEN, 10L, 0); | 4290 len = ui_inchar(ta_buf, BUFLEN, 10L, 0); |
4294 } | 4291 } |
4295 if (ta_len > 0 || len > 0) | 4292 if (ta_len > 0 || len > 0) |
4296 { | 4293 { |
4297 /* | 4294 /* |