Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update comment to explain assumptions.dgp_flush_channel | dgp | 2014-05-28 | 1 | -3/+10 |
| | |||||
* | Further simplifications to FlushChannel(). This makes clear the | dgp | 2014-05-28 | 1 | -76/+38 |
| | | | BUFFER_READY flag serves no necessary purpose, so it is removed. | ||||
* | Expand the IsBufferFull() macro to check non-NULL bufPtr.. | dgp | 2014-05-28 | 1 | -7/+10 |
| | |||||
* | Increase size of test io-29.34 so that it more portably tests the case where | dgp | 2014-05-28 | 1 | -0/+9 |
| | | | | the OS networking machinery gets backed up and blocks. Added several TODO comments on potential simplifications. | ||||
* | Move code that can only matter in the first loop iteration out of the loop. | dgp | 2014-05-27 | 1 | -13/+6 |
| | |||||
* | Rework the management of the CHANNEL_BLOCKED and CHANNEL_EOF flags, in | dgp | 2014-05-20 | 1 | -138/+137 |
|\ | | | | | | | particular not allowing them to leak between multiple layers of a stacked channel. Much common code refactored into ChanRead(). | ||||
| * | Improved use of EOF state to avoid worthless allocations. | dgp | 2014-05-16 | 1 | -10/+12 |
| | | |||||
| * | Move the resets and testings of the BLOCKED flag to where they make more sense. | dgp | 2014-05-16 | 1 | -22/+17 |
| | | |||||
| * | merge 8.5 | dgp | 2014-05-16 | 1 | -9/+37 |
| |\ | |/ |/| | |||||
* | | merge 8.5bug_io_32_11 | dgp | 2014-05-16 | 1 | -1/+0 |
|\ \ | |||||
* \ \ | Merge completion of dgp-read-bytes branch. | dgp | 2014-05-16 | 1 | -912/+544 |
|\ \ \ | |||||
* | | | | Bug fix - accept consumption of the trailing newline in crlf with no | dgp | 2014-05-16 | 1 | -9/+37 |
| | | | | | | | | | | | | characters produced. Also delete false assertions. | ||||
| | | * | Push the setting and clearing of CHANNEL_BLOCKED flag to the more inner | dgp | 2014-05-15 | 1 | -11/+12 |
| | | | | | | | | | | | | parts of the channel read machinery. | ||||
| | | * | Rework Tcl_ReadRaw() mostly taking things out of the loop that never repeat. | dgp | 2014-05-13 | 1 | -36/+20 |
| | | | | |||||
| | | * | Salvaged what was left of value in the dgp-read-bytes-detour branch. | dgp | 2014-05-13 | 1 | -79/+97 |
| | | |\ | | |/ / | | | | | | | | | | | | | | | | | | | | | Refactored much management of the BLOCKED and EOF flags into ChanRead() then began repairing some of the logic about them. Tests iogt-2.* now fail because they've been crafted as experiments recording the fine detail of reflected channel driver calls, and fixing the management of channel flags is changing that. | ||||
| | | * | missing declarationdgp_read_bytes_detour | dgp | 2014-03-21 | 1 | -0/+1 |
| | | | | |||||
| | | * | Fixup ChanRead() header. Note (dstSize > 0) precondition. | dgp | 2014-03-21 | 1 | -2/+8 |
| | | | | |||||
| | | * | Documentation header for ChanRead() | dgp | 2014-03-21 | 1 | -2/+23 |
| | | | | |||||
| | | * | Both callers of ChanRead() have simlar epilogs. Shift that into ChanRead | dgp | 2014-03-20 | 1 | -73/+50 |
| | | | | | | | | | | | | and refactor. | ||||
| | * | | Merge the reforms of dgp-read-bytes branch into 8.5+ releases. | dgp | 2014-05-08 | 1 | -826/+557 |
| | |\ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | Large overhaul of I/O read operations - Protects integer overflow of buffers, reusing append machinery - Forces -buffersize changes to take place when commanded - Uses assertions to simplify code in "can't happen" situations - Eliminated duplication of -translation processing - Fixes bugs io-35.18b and io-35.20 | ||||
| * | | | Merge 8.5.dgp_read_bytes | dgp | 2014-05-08 | 1 | -0/+5 |
| |\ \ \ | | |/ / | |||||
| | * | | Stop leak in iocmd-21.22. | dgp | 2014-05-08 | 1 | -0/+1 |
| | | | | |||||
| | * | | Stop leak in io-53.5. | dgp | 2014-05-07 | 1 | -0/+1 |
| | | | | |||||
| | * | | Stop memory leak in io-29.34 | dgp | 2014-05-06 | 1 | -0/+2 |
| | | | | |||||
| | * | | Stop memory leak in io-29.27. | dgp | 2014-05-06 | 1 | -0/+1 |
| | | | | |||||
| * | | | Merge GotFlag() backport from 8.5. Conflicts galore! | dgp | 2014-05-05 | 1 | -90/+82 |
| |\ \ \ | | |/ / | |||||
| | * | | Backport "GotFlag" macro from Tcl 8.6. Makes code more readable. No change ↵ | jan.nijtmans | 2014-05-05 | 1 | -97/+89 |
| | | | | | | | | | | | | | | | | in functionality. | ||||
| * | | | merge 8.5 | dgp | 2014-05-02 | 1 | -2/+59 |
| |\ \ \ | | |/ / | |||||
| | * | | Backport channel self restacking support. (Test iogt-2.4). | dgp | 2014-05-02 | 1 | -2/+59 |
| | |\ \ | |||||
| | | * | | Add some comments about possible other self-restacking troubles. | dgp | 2014-05-02 | 1 | -1/+8 |
| | | | | | |||||
| | | * | | Fully restore topChan resetting to accommodate self-restacking channels. | dgp | 2014-05-02 | 1 | -17/+26 |
| | | | | | |||||
| | | * | | Re-enable buffer recycling. | dgp | 2014-05-02 | 1 | -1/+1 |
| | | | | | |||||
| | | * | | Stop the segfault in iogt-2.4. First by changing the UpdateInterest() | dgp | 2014-05-01 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | call that triggers it. "downChanPtr" may no longer be the right argument at that point. Second, after ending the segfault, the test became an infinite loop (nested unstacking?! whoa.), so revised the test to one that terminates (and passes). Left behind a comment that the recursive unstacking case may require more examination. | ||||
| | | * | | merge trunk | dgp | 2014-05-01 | 1 | -8/+27 |
| | | |\ \ | |||||
| | | | * \ | Merge in the fixes for improper ChannelBuffer sharing via recycling. | dgp | 2014-05-01 | 1 | -8/+27 |
| | | | |\ \ | | | |_|/ / | | |/| | | | |||||
| | | * | | | merge trunk | dgp | 2014-04-29 | 1 | -2/+4 |
| | | |\ \ \ | | | | |/ / | |||||
| | | | * | | Fix bug exposed when buffer recycling is disabled. | dgp | 2014-04-29 | 1 | -2/+4 |
| | | | |\ \ | |||||
| | | * | | | | Disable buffer recycling, which creates mysteries. | dgp | 2014-04-25 | 1 | -1/+1 |
| | | | | | | | |||||
| | | * | | | | Test iortrans-4.8.2 demos an infinite loop. Possible trouble with | dgp | 2014-04-25 | 1 | -0/+5 |
| | | |/ / / | | | | | | | | | | | | | pushback buffers. | ||||
| | | * | | | Merge refcounting machinery for ChannelBuffer. | dgp | 2014-04-21 | 1 | -8/+42 |
| | | |\ \ \ | |||||
| | | * \ \ \ | Fix for Bug [97069ea11a]: Set return message in close if a flush error is ↵ | oehhar | 2014-04-04 | 1 | -1/+11 |
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | reported (which may be an error from a background flush) | ||||
| | | * \ \ \ \ | Merge minimal fix for iocmd-23.11. | dgp | 2014-03-28 | 1 | -10/+28 |
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that top channel regeneration is removed, so that Preserve/Release call pairs are sure to operate on the same pointers. Other bug fixes may need to change that. | ||||
| | | * \ \ \ \ \ | Simplify the core output operations of channels. Reduce duplicative and dead ↵ | dgp | 2014-02-04 | 1 | -590/+63 |
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | code. | ||||
| | | * \ \ \ \ \ \ | Eliminate the use of a staging buffer in WriteChars(). | dgp | 2014-01-30 | 1 | -185/+115 |
| | | |\ \ \ \ \ \ \ | |||||
| | | * \ \ \ \ \ \ \ | In WriteChars(), eliminate the copy step through a staging buffer when it | dgp | 2014-01-24 | 1 | -10/+12 |
| | | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | is not required for channel translation. | ||||
| | | * \ \ \ \ \ \ \ \ | Remove from tclIO.h structs used only in tclIO.c. | dgp | 2013-02-26 | 1 | -0/+102 |
| | | |\ \ \ \ \ \ \ \ \ | |||||
| | | * \ \ \ \ \ \ \ \ \ | Repair linked list management in Tcl_DeleteCloseHandler(). | dgp | 2013-02-25 | 1 | -0/+14 |
| | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CloseCallback struct used only locally. Remove from tclIO.h. | ||||
| | | * \ \ \ \ \ \ \ \ \ \ | merge core-8-5-branch | jan.nijtmans | 2013-01-31 | 1 | -2/+2 |
| | | |\ \ \ \ \ \ \ \ \ \ \ | |||||
| | | * | | | | | | | | | | | | Fix busyloop at exit under TCL_FINALIZE_ON_EXIT when there are unflushed ↵ | ferrieux | 2012-12-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nonblocking channels. Thanks Miguel for spotting. | ||||
| | | * | | | | | | | | | | | | Fix for core bug yet to be named/numbered.dgp_stackedstdchan | dgp | 2012-10-02 | 1 | -3/+9 |
| | | | | | | | | | | | | | | |