Tcl Source Code

View Ticket
Login
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

Ticket UUID: 0654cecae10ba0762303c77b114bd3871f4ecc09
Title: file copy from zipfs does not terminate
Type: Bug Created on: 2019-08-19 09:52:32
Submitter: chw Assigned to: jan.nijtmans
Subsystem: 37. File System Severity: Minor
Priority: 5 Medium Last modified: 2026-11-18 15:32:44
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2026-11-18 15:32:44
Version: 9.0.5, 9.1.0
Description:
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
User Comments:
chw added on 2019-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.storchaka added on 2026-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.


jan.nijtmans added on 2026-11-18 15:32:44:

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

Many thanks!