Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [10dc6daa37] New fix for [gets] on non-blocking channel. This time properly ↵ | dgp | 2014-10-18 | 1 | -6/+8 |
|\ | | | | | | | accounts for the effects of ENCODING_LINESIZE. | ||||
| * | [10dc6daa37] New fix for [gets] on non-blocking channel. This time | dgp | 2014-10-18 | 1 | -6/+8 |
| |\ | | | | | | | properly accounts for the effects of ENCODING_LINESIZE. | ||||
| | * | [10dc6daa37] [gets] on a non-blocking channel must take care so that | dgp | 2014-10-17 | 1 | -0/+6 |
| |/ | | | | | | | | | | | | | 1) At least one call to the channel driver input proc gets made. Failure to do this locks up the channel - catastrophic FAIL. 2) After any driver call reports BLOCKED, don't call again. This is less serious, but FAILs to respect the non-blocking setting. Code corrections and tests included, to restore 8.5.15 compat. | ||||
* | | [bf7135428c] Restore the Tcl_Write() return value logic. | dgp | 2014-10-10 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | [bf7135428c] Restore the Tcl_Write() return value logic. | dgp | 2014-10-10 | 1 | -1/+4 |
| | | |||||
* | | [ed29c4da21] Completed fix for [chan copy] handling [chan blocked]. | dgp | 2014-10-10 | 1 | -1/+5 |
| | | |||||
* | | [ed29c4da21] Merge patch from 8.5, still not a complete fix. | dgp | 2014-10-10 | 1 | -5/+23 |
|\ \ | |/ | |||||
| * | [ed29c4da21] Don't let BLOCKED state get converted into a channel error. | dgp | 2014-10-10 | 1 | -5/+23 |
| | | |||||
* | | [bc5b790099] Improper calculation of new dstLimit value. New test io-12.7. | dgp | 2014-10-02 | 1 | -3/+2 |
|\ \ | |/ | |||||
| * | [bc5b790099] Improper calculation of new dstLimit value. New test io-12.7. | dgp | 2014-10-02 | 1 | -3/+2 |
| | | |||||
* | | Make corrections to long-false comments. | dgp | 2014-09-05 | 1 | -9/+9 |
| | | |||||
* | | Remove ChannelHandlerEvent struct, which has never been used in all of | dgp | 2014-09-04 | 1 | -11/+0 |
| | | | | | | | | | | recorded Tcl history. Still need to purge comments of mentions of ChannelHandlerEventProc() which is similarly pre-historic. | ||||
* | | merge 8.5; fix notifier mask bug and Tcl_Read performance regression | dgp | 2014-08-22 | 1 | -20/+8 |
|\ \ | |/ | |||||
| * | Same results; simpler logic.dgp_slow_read | dgp | 2014-08-22 | 1 | -21/+7 |
| | | |||||
| * | Test fix for likely cause of reported I/O slowdown. | dgp | 2014-08-21 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | In a DoRead() revision, it came to favor making every effort to fill buffers, in preference to a more sensible goal of favoring avoiding calls out to the driver if there's already enough data in the buffers to satisfy the read operation. Result is many more calls out to recv() than are a good idea. Ought to show up most glaringly when many Tcl_Read() calls asking for small numbers of bytes (compared to buffer size) each, and that matches the reported case. | ||||
| * | Docs for Tcl_CreateChannelHandler() state that the registered handler procaku_review | dgp | 2014-08-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | will be called back with a mask value. "Mask is an integer mask indicating which of the requested conditions actually exists for the channel; it will contain ***a subset of the bits from the mask argument*** to Tcl_CreateChannelHandler when the handler was created." (emhpasis added). Tcl_NotifyChannel is not honoring this. It passes a mask value that may contain bits not in common with the mask argument to T_CCH(). This commit is a one-liner patch adding in the masking step to make things behave as documented. Thanks to apn for digging this out. (In combination with other questionable code, this led to a hang in test http-4.6 on Windows) Tcl_NotifyChannel() has had this error in all of recorded Tcl history. It's hard to imagine any code dependent on it though. If any exists, it can be revised to pass the mask value it truly needs to T_CCH() and end up with code suitable both before and after this change. If you concur, please merge to core-8-5-branch, and I'll take it from there. | ||||
| * | Accommodate the "udp" package, and any other Tcl package that expects a | dgp | 2014-08-12 | 1 | -1/+1 |
| | | | | | | | | | | [read] on a channel @ EOF to attempt another pass through the channel drivers instead of immediately returning an empty string. Correcting this misbehavior appears too disruptive in a patch release to a long stable branch. | ||||
* | | Fixed type conversion warnings which break a Win32 debug build (MSVC). | andreask | 2014-08-06 | 1 | -2/+10 |
| | | |||||
* | | Another Preserve/Release on channels is needed during IO finalization. | dgp | 2014-08-02 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | Another Preserve/Release on channels is needed during IO finalization. | dgp | 2014-08-02 | 1 | -0/+3 |
| | | |||||
| * | Updated package "platform" to version 1.0.13. Separated the | andreask | 2014-08-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | identifiers "macosx*-i386-x86_64" and "macosx-universal" as incompatible with each other. Plus addition of a cast in tclIO.c to match types in a comparison which otherwise bugs a Windows debug build (warnings are errors). | ||||
| * | Backport the cheaper Preserve/Release on channels. | dgp | 2014-08-01 | 1 | -33/+55 |
| |\ | |/ |/| | |||||
* | | Complete transformation off Tcl_Preserve() legacy onto ref counting. | dgp | 2014-07-30 | 1 | -15/+7 |
| | | |||||
* | | Reduce the cost of Preserve/Release on channels | dgp | 2014-07-30 | 1 | -25/+52 |
| | | |||||
* | | Revise MBRead() to be used in both sync and async modes. | dgp | 2014-07-28 | 1 | -44/+34 |
| | | |||||
* | | Push MBWrite() differences out to callers. | dgp | 2014-07-27 | 1 | -27/+22 |
| | | |||||
* | | Rework MBWrite() so it can be used in both sync and async modes. | dgp | 2014-07-27 | 1 | -68/+41 |
| | | | | | | Reduce code duplication. | ||||
* | | Use common MBError() routine for sync and async operations. | dgp | 2014-07-26 | 1 | -25/+24 |
| | | |||||
* | | Extend the "move buffer" implementation to cover the async case. | dgp | 2014-07-26 | 1 | -11/+175 |
| | | |||||
* | | simplify moveBytes selection logic | dgp | 2014-07-24 | 1 | -3/+1 |
| | | |||||
* | | Make sure MoveBytes error reporting reproduces what CopyData does. Bugward ↵ | dgp | 2014-07-24 | 1 | -0/+8 |
| | | | | | | | | compatibility! | ||||
* | | Make sure MoveBytes records read error messages. | dgp | 2014-07-24 | 1 | -1/+5 |
| | | |||||
* | | Extend the buffer move optimization to the "same encodings" case. | dgp | 2014-07-23 | 1 | -2/+3 |
| | | |||||
* | | merge trunk | dgp | 2014-07-22 | 1 | -1/+1 |
|\ \ | |||||
| * \ | Repair buffer indexing error in Tcl_ReadRaw(). | dgp | 2014-07-10 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | Repair buffer indexing error in Tcl_ReadRaw() exposed by iogt-6.0 and valgrind. | dgp | 2014-07-10 | 1 | -1/+1 |
| | | | |||||
* | | | First draft of using buffer moves in place of buffer copies to create an | dgp | 2014-07-09 | 1 | -2/+117 |
|/ / | | | | | efficient [chan copy]. | ||||
* | | [c31ca233ca] Fix TclGetsObjBinary() so that each [gets] rediscovers whether | dgp | 2014-07-02 | 1 | -5/+4 |
|\ \ | |/ | | | a nonblocking channel is blocked. | ||||
| * | [c31ca233ca] Fix TclGetsObjBinary() so that each [gets] rediscovers whether | dgp | 2014-07-02 | 1 | -5/+4 |
| | | | | | | a nonblocking channel is blocked. | ||||
* | | Fix mismatch of Tcl_Preserve() / Tcl_Release(). | dgp | 2014-06-26 | 1 | -2/+1 |
|\ \ | |/ | |||||
| * | Fix mismatch of Tcl_Preserve() / Tcl_Release(). | dgp | 2014-06-26 | 1 | -2/+1 |
| | | |||||
* | | Simplify / refactor Tcl_ReadRaw(). No need for CopyBuffer(). | dgp | 2014-06-24 | 1 | -127/+50 |
|\ \ | |/ | |||||
| * | Simplify / refactor Tcl_ReadRaw(). No need for CopyBuffer(). | dgp | 2014-06-24 | 1 | -127/+50 |
| | | |||||
* | | When too many chars are read by ReadChars() and we trim the limits to get it ↵ | dgp | 2014-06-05 | 1 | -4/+11 |
|\ \ | |/ | | | | | right on the next pass, don't forget the TCL_UTF_MAX padding demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!) Fix the factorPtr management. It was just totaly wrong. The factor should be a ratio of the record of bytes read to the record of chars read. With those fixes, new test io-12.6 covers the "too many chars" code. | ||||
| * | When too many chars are read by ReadChars() and we trim the limits to | dgp | 2014-06-05 | 1 | -4/+11 |
| | | | | | | | | | | | | | | get it right on the next pass, don't forget the TCL_UTF_MAX padding demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!) Fix the factorPtr management. It was just totaly wrong. The factor should be a ratio of the record of bytes read to the record of chars read. With those fixes, new test io-12.6 covers the "too many chars" code. | ||||
* | | Revise DiscardOutput() to account for revisions to the loop in ↵ | dgp | 2014-06-04 | 1 | -0/+5 |
|\ \ | |/ | | | | | FlushChannel() which is its only caller. We need to discard the curOutPtr buffer as well, and not count on another pass through the loop to attempt to flush it (and raise the same failure again?). | ||||
| * | Revise DiscardOutput() to account for revisions to the loop in FlushChannel() | dgp | 2014-06-04 | 1 | -0/+5 |
| | | | | | | | | | | which is its only caller. We need to discard the curOutPtr buffer as well, and not count on another pass through the loop to attempt to flush it (and raise the same failure again?). | ||||
| * | Backport I/O core fixes made known by async socket work on trunk. | dgp | 2014-06-03 | 1 | -7/+15 |
| |\ | |/ |/| | |||||
* | | These edits make all tests outside of socket-14.* pass on OSX Mavericks.dgp_async_socket | dgp | 2014-06-03 | 1 | -1/+3 |
| | | | | | | | | Several socket-14.* tests failing there, and those that pass are very slow about it. Firewall or poor networking configuration may be playing a role. | ||||
* | | These edits make the tests socket-14.11.[01] stop hanging, but also introduce | dgp | 2014-06-02 | 1 | -6/+12 |
| | | | | | | a whole raft of test failures. WIP. |