summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
diff options
context:
space:
mode:
authorferrieux <ferrieux@users.sourceforge.net>2012-05-22 20:28:48 (GMT)
committerferrieux <ferrieux@users.sourceforge.net>2012-05-22 20:28:48 (GMT)
commit3cc210b6d0579358daa94a0f3670e30c973b7f34 (patch)
treedca8c04835eaafae2c79ac4eba6e1e2d2c46f6d7 /generic/tclZlib.c
parentdbfa28f04fc02921314fbdeb342585b87557ef8f (diff)
downloadtcl-3cc210b6d0579358daa94a0f3670e30c973b7f34.zip
tcl-3cc210b6d0579358daa94a0f3670e30c973b7f34.tar.gz
tcl-3cc210b6d0579358daa94a0f3670e30c973b7f34.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.bug_3525907
Diffstat (limited to 'generic/tclZlib.c')
-rw-r--r--generic/tclZlib.c9
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);
}
}