Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

file copy from zipfs does not terminate

72 views
Skip to first unread message

fr

unread,
Aug 16, 2019, 7:40:52 AM8/16/19
to
I have Tclhttpd web server wrapped with bones tool on Android.
When browser requests static file from wrapped htdocs directory the following command in proc Httpd_ReturnFile

file copy zipfs_4747e2_2767 sockf998a8d0 -command [list HttpdCopyDone ...]

hangs and HttpdCopyDone is not started
Chrome browser sometimes reports ERR_CONTENT_LENGTH_MISMATCH, no html displayed.

Is "file copy" expected to work with source file in zipfs? - reading from zipfs_... gets uncompressed data - and length information in header is correct
The "-command" option used is not documented at https://www.tcl.tk/man/tcl8.6/TclCmd/file.htm

A start to get Tclhttpd running on Android is something like this in /assets/app/main.tcl

catch {console show}
set vfsdir /assets/app/htdocs
set webdir ~/htdocs
if {![file exists $webdir]} {
# template files require write access anyway
file copy $vfsdir ~
}
set xdir [file dirname [info script]]
set xdir [file join $xdir bin]
cd $xdir
source httpd.tcl

with directories /assets/app/(htdocs|bin|lib...)

undro...@gmail.com

unread,
Aug 16, 2019, 12:40:56 PM8/16/19
to
The asynchronous copying from the ZIP file system is not supported by the
current implementation. But certainly possible. And you presented a good
use case. Please add an RFE ticket on www.androwish.org

All the best,
Christian

undro...@gmail.com

unread,
Aug 19, 2019, 5:18:48 AM8/19/19
to

fr

unread,
Aug 21, 2019, 5:41:01 AM8/21/19
to
On Monday, August 19, 2019 at 11:18:48 AM UTC+2, undro...@gmail.com wrote:
> Feature request is added now, see
>
> https://www.androwish.org/home/tktview/e1c81d1c2216f3b7ed304f692d5a2cc00abc1f1c

This is great news. I was not connected 4 days and the intricate work is done!
Thank you, Christian.
Roland
0 new messages