diff options
| author | ferrieux@users.sourceforge.net <ferrieux> | 2012-05-22 20:28:48 (GMT) |
|---|---|---|
| committer | ferrieux@users.sourceforge.net <ferrieux> | 2012-05-22 20:28:48 (GMT) |
| commit | 84562e128b6938611aa6073d05b3bd775a7fc91f (patch) | |
| tree | dca8c04835eaafae2c79ac4eba6e1e2d2c46f6d7 /generic/tclZlib.c | |
| parent | 0a75c29f25f2c708ce825fee5e239fa1edb47de2 (diff) | |
| download | tcl-84562e128b6938611aa6073d05b3bd775a7fc91f.zip tcl-84562e128b6938611aa6073d05b3bd775a7fc91f.tar.gz tcl-84562e128b6938611aa6073d05b3bd775a7fc91f.tar.bz2 | |
Use zero-delays instead of finite ones when posting fileevents, because (1) they should be zero in the first place (see UpdateInterest) and (2) ever-reposting cases will be detected with greater ease.
Diffstat (limited to 'generic/tclZlib.c')
| -rw-r--r-- | generic/tclZlib.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c index 540b779..731176c 100644 --- a/generic/tclZlib.c +++ b/generic/tclZlib.c @@ -114,13 +114,6 @@ typedef struct { #define DEFAULT_BUFFER_SIZE 4096 /* - * Time to wait (in milliseconds) before flushing the channel when reading - * data through the transform. - */ - -#define TRANSFORM_FLUSH_DELAY 5 - -/* * Convenience macro to make some casts easier to use. */ @@ -2737,7 +2730,7 @@ ZlibTransformTimerSetup( ZlibChannelData *cd) { if (cd->timer == NULL) { - cd->timer = Tcl_CreateTimerHandler(TRANSFORM_FLUSH_DELAY, + cd->timer = Tcl_CreateTimerHandler(0, ZlibTransformTimerRun, cd); } } |
