#361 closed defect (fixed)
sendfile broken for chickens >= 4.6.0
Reported by: | felix winkelmann | Owned by: | certainty |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | extensions | Version: | 4.6.x |
Keywords: | sendfile | Cc: | sjamaan |
Estimated difficulty: |
Description
Sendfile invokes (##sys#fudge 16), which isn't available anymore, and calls ##sys#thread-block-for-timeout! with invalid fixnum timeout values.
Attachments (1)
Change History (5)
comment:1 follow-up: 2 Changed 14 years ago by
Owner: | set to certainty |
---|---|
Status: | new → assigned |
comment:2 Changed 14 years ago by
Replying to sjamaan:
I'll let David deal with this. By the way, what did (##sys#fudge 16) do?
(##sys#fudge 16) returns the current milliseconds since startup (now as flonum).
Attached is a patch, but I'm still fighting with a modified version of the scheduler, so I have done only very limited testing.
Changed 14 years ago by
Attachment: | sendfile.diff added |
---|
comment:3 follow-up: 4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks very much for the patch.
I've applied it and released a new version.
I probably should have looked for a away to avoid procedures out of the ##sys#-namespace where possible, before. :)
comment:4 Changed 14 years ago by
Replying to certainty:
Thanks very much for the patch.
I've applied it and released a new version.
I probably should have looked for a away to avoid procedures out of the ##sys#-namespace where possible, before. :)
Have you tested it? I am not 100% sure this change works with pre 4.6.0 chickens!
I'll let David deal with this. By the way, what did (##sys#fudge 16) do?