Skip to content

Httpd.tcl calls coroutines with more than one argument when Resume #38

@GoogleCodeExporter

Description

@GoogleCodeExporter
I've tried WubWikit for offline use, and found one issue in Httpd.tcl and a 
minor one in WikitWub.tcl (there are two places that create 
::tdbc::sqlite3::connection with -readonly 1; changing it to 0 and it will work 
fine).

The issue with Httpd.tcl is that in the method Resume, it calls its coroutine 
with two arguments. According to Tcl/Tk documentation, a coroutine can be 
resumed with optional single value. Calling it with two arguments caused an 
error.

To be exact, here is the line 2342 in file Httpd.tcl (version Feb 25, 2013):
set code [catch {{*}[dict get $r -send] send $r} e eo]

To fix the problem, I changed it to:
set code [catch {{*}[dict get $r -send] [list send $r]} e eo]

Hope this helps.

Original issue reported on code.google.com by damker...@gmail.com on 8 Jul 2013 at 2:53

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions