Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-02-27
03:08 • Closed ticket [1868845fff]: eof check is before gets, not after it plus ... artifact: 39b4b9c1ec user: patthoyts
2008-01-29
21:22 • Ticket [1868845fff]: 1 change artifact: 3050174833 user: dkf
2008-01-10
21:08 • New ticket [1868845fff]. artifact: 72ad798c44 user: davygrvy

[eof] check is before [gets], not after it

Closed / Fixed1868845fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-01-10 21:08:30
Hi,

The http package is not compatible with IOCPSOCK (a replacement socket channel driver for WinNT systems) only because the check for EOF in [http::Event] is placed before the [gets] operation.

Moving it to after read/gets operation will still work with channel drivers based on select()'s polling semantics, too, and save a needless event loop iteration as well.
dkf Ticket [1868845fff]: 1 change [History diff]2008-01-29 21:22:32
patthoytsplain2008-02-27 03:08:15
Logged In: YES 
user_id=202636
Originator: NO

Applied the suggested change and incremented the http package version to 2.5.5 so it can be tested for. Checking this change doesn't reveal any problems with the tkchat plugins which use http -handler, -timeout and -command so it seems safe enough.
Log in (anonymous is fine) to add a comment.