Comments (3)
The socket is fully buffered so your puts typically won't be sent. Either make it line buffered or add '$f flush' after the last puts
from jimtcl.
OK, it's an easy fix, but it breaks previously working code.
I note that the 0.82 release documentation didn't actually state what the default buffering mode was, nor does the current version say this has changed, but at least it now tells you what it is.
from jimtcl.
The docs for aio buffering say:
Channels usually begin in full buffering mode, unless they identify
as a tty channel, in which case line buffering is used, and `stderr`
begins with no buffering.
And this is still true. With full buffering you can't rely on when the buffer is flushed without an explicit flush. If it worked before it was just "lucky" as a side effect of the implementation (probably that a switch from write to read caused a flush), but that is not part of the documented interface.
from jimtcl.
Related Issues (20)
- strncasecmp and strcasecmp in jim-signal.c w/o strings.h include
- Some return values ignored HOT 1
- configure does not/wrongly detect missing zlib and openssl with diet libc HOT 1
- Commenting JIM_OPTIMIZATION Breaks Build
- Provide a way to pass arbitrary strings to executed commands (likely with TIP 424) HOT 4
- Constant comparison HOT 1
- Feature request: add umask (or os.umask) command HOT 2
- documentation syntax examples are different than actual results HOT 6
- timer-3.2 test failure when building with tcl on osx HOT 3
- $(...) vs [expr {...}] HOT 2
- Compiling for Windows Using MSYS HOT 10
- Converting script into a standalone executable HOT 2
- segfault in "if string length" in jimsh 0.82 HOT 6
- Backwards compatibility for oo.tcl HOT 2
- Bug in `subst`: If a `\[` follows a `$`, variables stop being interpolated HOT 1
- Add git hash to version number display HOT 4
- UBSan complains while executing Jim_LreplaceCoreCommand HOT 1
- UBSan complains when doing left shift for some inputs HOT 3
- GCC 14: jimtcl will no longer build HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jimtcl.