Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-11-18
15:32 • Closed ticket [0654cecae1]: file copy from zipfs does not terminate plus 7 ... artifact: c3a86495d6 user: jan.nijtmans
15:30
Fix [0654ce]: zipfs channels never generated file events check-in: 7b5d085d20 user: jan.nijtmans tags: core-9-0-branch
2026-11-13
11:18 • Ticket [0654cecae1] file copy from zipfs does not terminate status still Op... artifact: 1516f150ca user: serhiy.storchaka
2026-10-16
14:55
Fix [0654ce]: zipfs channels never generated file events check-in: fadaf68f34 user: jan.nijtmans tags: trunk, main
2026-10-12
16:53 • Ticket [0654cecae1] file copy from zipfs does not terminate status still Op... artifact: 4e40720616 user: serhiy.storchaka
16:53
Fix [0654cecae1]: zipfs channels never generated file events, so [fileevent] handlers never fired an... closed check-in: 1ae447d307 user: serhiy.storchaka tags: zipfs-channel-events
16:05 • Pending ticket [3018050fff]: fcopy-from-starkit hangs on Windows plus 4 oth... artifact: c1da2b3f2c user: serhiy.storchaka
2019-08-24
18:35 • Ticket [0654cecae1] file copy from zipfs does not terminate status still Op... artifact: 5fc688f239 user: chw
2019-08-19
09:52 • New ticket [0654cecae1]. artifact: ccf5ccb96b user: chw

file copy from zipfs does not terminate

Closed / Fixed0654cecae10ba0762303c77b114bd3871f4ecc09Created 7 years agoUpdated 14 days ago
Descriptionplain2019-08-19 09:52:32
See https://groups.google.com/forum/#!topic/comp.lang.tcl/5Jx7VY0ggC8
for original context.

The objective is to have support for event driven/background operations
on the ZIP file system in order to use e.g. fcopy with -command option
to asynchronously transfer data from a file in the ZIP file system to
a socket.

See also the corresponding ticket on www.androwish.org in
https://www.androwish.org/index.html/info/e1c81d1c2216f3b7
Referenced by2
  • 1ae447d307Fix [0654cecae1]: zipfs channels never generated file events, so [fileevent] handlers never fired and [fcopy -command] from a zipfs file hung. While a zipfs channel is watched, notify it from a zero-delay timer. check-in2026-10-12 16:53:00
  • c1da2b3f2cPending ticket [3018050fff]: fcopy-from-starkit hangs on Windows plus 4 other changes ticket2026-10-12 16:05:47
chwplain2019-08-24 18:35:25
Meanwhile the issue seems solved so far, see these check-ins on www.androwish.org:

https://www.androwish.org/home/info/4d44284373

https://www.androwish.org/home/info/880df261cc
serhiy.storchakawiki2026-10-12 16:53:43

Still happens in 9.0 and 9.1: the watch proc of zipfs channels does nothing, so fileevent handlers never fire and fcopy -command from a zipfs file never copies anything.

Proposed fix in branch zipfs-channel-events: a zipfs channel is always ready, so while it is watched a zero-delay timer notifies the channel, as for the zlib transform and reflected transforms.

The AndroWish fix uses a per-thread event source and a table of watched channels instead. It delivers real file events, but needs much more code and per-thread data that has to be handled carefully at thread exit (its second check-in fixes that). Both need a thread action proc for channel transfer between threads; the branch adds one that cancels the timer.

serhiy.storchaka Ticket [0654cecae1]: 2 changes [History diff]2026-11-13 11:18:46
jan.nijtmanswiki2026-11-18 15:32:44

Merged to [trunk] and core-9-0-branch

Many thanks!

Log in (anonymous is fine) to add a comment.