summaryrefslogtreecommitdiffstats
path: root/generic/tclIORTrans.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/tclIORTrans.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/tclIORTrans.c')
-rw-r--r--generic/tclIORTrans.c9
1 files changed, 1 insertions, 8 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);
}
/*