diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2012-05-22 20:28:48 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2012-05-22 20:28:48 (GMT) |
commit | 3cc210b6d0579358daa94a0f3670e30c973b7f34 (patch) | |
tree | dca8c04835eaafae2c79ac4eba6e1e2d2c46f6d7 /generic | |
parent | dbfa28f04fc02921314fbdeb342585b87557ef8f (diff) | |
download | tcl-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')
-rw-r--r-- | generic/tclIORTrans.c | 9 | ||||
-rw-r--r-- | generic/tclZlib.c | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/generic/tclIORTrans.c b/generic/tclIORTrans.c index 5d99f73..fd25f2d 100644 --- a/generic/tclIORTrans.c +++ b/generic/tclIORTrans.c @@ -439,13 +439,6 @@ static const char *msg_dstlost = */ /* - * Number of milliseconds to wait before firing an event to try to flush out - * information waiting in buffers (fileevent support). - */ - -#define FLUSH_DELAY (5) - -/* * Helper functions encapsulating some of the thread forwarding to make the * control flow in callers easier. */ @@ -2861,7 +2854,7 @@ TimerSetup( return; } - rtPtr->timer = Tcl_CreateTimerHandler(FLUSH_DELAY, TimerRun, rtPtr); + rtPtr->timer = Tcl_CreateTimerHandler(0, TimerRun, rtPtr); } /* 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); } } |