summaryrefslogtreecommitdiffstats
path: root/src/channel.c
AgeCommit message (Collapse)Author
2016-05-09patch 7.4.1828v7.4.1828Bram Moolenaar
Problem: May try to access buffer that's already freed. Solution: When freeing a buffer remove it from any channel.
2016-05-09patch 7.4.1827v7.4.1827Bram Moolenaar
Problem: No error when invoking a callback when it's not safe. Solution: Add an error message. Avoid the error when freeing a channel.
2016-05-09patch 7.4.1826v7.4.1826Bram Moolenaar
Problem: Callbacks are invoked when it's not safe. (Andrew Stewart) Solution: When a channel is to be closed don't invoke callbacks right away, wait for a safe moment.
2016-05-08patch 7.4.1825v7.4.1825Bram Moolenaar
Problem: When job writes to buffer nothing is written. (Nicola) Solution: Do not discard a channel before writing is done.
2016-05-08patch 7.4.1824v7.4.1824Bram Moolenaar
Problem: When a job is no longer referenced and does not have an exit callback the process may hang around in defunc state. (Nicola) Solution: Call job_status() if the job is running and won't get freed because it might still be useful.
2016-05-04patch 7.4.1817v7.4.1817Bram Moolenaar
Problem: The screen is not updated if a callback is invoked when closing a channel. Solution: Invoke redraw_after_callback().
2016-05-01patch 7.4.1814v7.4.1814Bram Moolenaar
Problem: A channel may be garbage collected while it's still being used by a job. (James McCoy) Solution: Mark the channel as used if the job is still used. Do the same for channels that are still used.
2016-04-30patch 7.4.1810v7.4.1810Bram Moolenaar
Problem: Sending DETACH after a channel was closed isn't useful. Solution: Only add DETACH for a netbeans channel.
2016-04-30patch 7.4.1807v7.4.1807Bram Moolenaar
Problem: Test_out_close_cb sometimes fails. Solution: Always write DETACH to out, not err.
2016-04-26patch 7.4.1791v7.4.1791Bram Moolenaar
Problem: Channel could be garbage collected too early. Solution: Don't free a channel or remove it from a job when it is still useful.
2016-04-26patch 7.4.1789v7.4.1789Bram Moolenaar
Problem: Cannot use ch_read() in the close callback. Solution: Do not discard the channel if there is readahead. Do not discard readahead if there is a close callback.
2016-04-26patch 7.4.1787v7.4.1787Bram Moolenaar
Problem: When a job ends the close callback is invoked before other callbacks. On Windows the close callback is not called. Solution: First invoke out/err callbacks before the close callback. Make the close callback work on Windows.
2016-04-18patch 7.4.1750v7.4.1750Bram Moolenaar
Problem: When a buffer gets updated while in command line mode, the screen may be messed up. Solution: Postpone the redraw when the screen is scrolled.
2016-04-14patch 7.4.1727v7.4.1727Bram Moolenaar
Problem: Cannot detect a crash in tests when caused by garbagecollect(). Solution: Add garbagecollect_for_testing(). Do not free a job if is still useful.
2016-04-08patch 7.4.1719v7.4.1719Bram Moolenaar
Problem: Leaking memory when there is a cycle involving a job and a partial. Solution: Add a copyID to job and channel. Set references in items referred by them. Go through all jobs and channels to find unreferenced items. Also, decrement reference counts when garbage collecting.
2016-04-07patch 7.4.1717v7.4.1717Bram Moolenaar
Problem: Leaking memory when opening a channel fails. Solution: Unreference partials in job options.
2016-03-30patch 7.4.1687v7.4.1687Bram Moolenaar
Problem: The channel close_cb option does not work. Solution: Use jo_close_partial instead of jo_err_partial. (Damien)
2016-03-28patch 7.4.1680v7.4.1680Bram Moolenaar
Problem: Coverity warns for not checking name length (false positive). Solution: Only copy the characters we know are there.
2016-03-28patch 7.4.1669v7.4.1669Bram Moolenaar
Problem: When writing buffer lines to a pipe Vim may block. Solution: Avoid blocking, write more lines later.
2016-03-28patch 7.4.1668v7.4.1668Bram Moolenaar
Problem: channel_get_all() does multiple allocations. Solution: Compute the size and allocate once.
2016-03-28patch 7.4.1667v7.4.1667Bram Moolenaar
Problem: Win32: waiting on a pipe with fixed sleep time. Solution: Start with a short delay and increase it when looping.
2016-03-28patch 7.4.1666v7.4.1666Bram Moolenaar
Problem: When reading JSON from a channel all readahead is used. Solution: Use the fill function to reduce overhead.
2016-03-27patch 7.4.1665v7.4.1665Bram Moolenaar
Problem: Crash when calling job_start() with a NULL string. (Dominique) Solution: Check for an invalid argument.
2016-03-26patch 7.4.1662v7.4.1662Bram Moolenaar
Problem: No test for an invalid Ex command on a channel. Solution: Test handling an invalid command gracefully. Avoid getting an error message, do write it to the channel log.
2016-03-21patch 7.4.1631v7.4.1631Bram Moolenaar
Problem: Compiler doesn't understand switch on all enum values. (Tony Mechelynck) Solution: Initialize variable.
2016-03-21patch 7.4.1628v7.4.1628Bram Moolenaar
Problem: 64-bit Compiler warning. Solution: Change type of variable. (Mike Williams)
2016-03-20patch 7.4.1624v7.4.1624Bram Moolenaar
Problem: Can't get info about a channel. Solution: Add ch_info().
2016-03-20patch 7.4.1623v7.4.1623Bram Moolenaar
Problem: All Channels share the message ID, it keeps getting bigger. Solution: Use a message ID per channel.
2016-03-20patch 7.4.1618v7.4.1618Bram Moolenaar
Problem: Starting job with output to buffer changes options in the current buffer. Solution: Set "curbuf" earlier. (Yasuhiro Matsumoto)
2016-03-20patch 7.4.1617v7.4.1617Bram Moolenaar
Problem: When a JSON message is split it isn't decoded. Solution: Wait a short time for the rest of the message to arrive.
2016-03-20patch 7.4.1616v7.4.1616Bram Moolenaar
Problem: Malformed channel request causes a hang. Solution: Drop malformed message. (Damien)
2016-03-19patch 7.4.1593v7.4.1593Bram Moolenaar
Problem: Using channel timeout instead of request timeout. (Coverity) Solution: Remove the extra assignment.
2016-03-15patch 7.4.1579v7.4.1579Bram Moolenaar
Problem: Missing changes in channel.c Solution: Include the changes.
2016-03-14patch 7.4.1560v7.4.1560Bram Moolenaar
Problem: Dict options with a dash are more difficult to use. Solution: Use an underscore, so that dict.err_io can be used.
2016-03-14patch 7.4.1559v7.4.1559Bram Moolenaar
Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
2016-03-12patch 7.4.1544v7.4.1544Bram Moolenaar
Problem: On Win32 escaping the command does not work properly. Solution: Reset 'ssl' when escaping the command. (Yasuhiro Matsumoto)
2016-03-12patch 7.4.1541v7.4.1541Bram Moolenaar
Problem: Missing job_info(). Solution: Implement it.
2016-03-12patch 7.4.1539v7.4.1539Bram Moolenaar
Problem: Too much code in eval.c. Solution: Move job and channel code to channel.c.
2016-03-11patch 7.4.1537v7.4.1537Bram Moolenaar
Problem: Too many feature flags for pipes, jobs and channels. Solution: Only use FEAT_JOB_CHANNEL.
2016-03-11patch 7.4.1536v7.4.1536Bram Moolenaar
Problem: Cannot re-use a channel for another job. Solution: Add the "channel" option to job_start().
2016-03-10patch 7.4.1531v7.4.1531Bram Moolenaar
Problem: Compiler warning for unitinialized variable. (Dominique Pelle) Solution: Always give the variable a value.
2016-03-09patch 7.4.1529v7.4.1529Bram Moolenaar
Problem: Specifying buffer number for channel not implemented yet. Solution: Implement passing a buffer number.
2016-03-09patch 7.4.1527v7.4.1527Bram Moolenaar
Problem: Channel test is flaky on MS-Windows. Solution: Limit the select() timeout to 50 msec and try with a new socket if it fails.
2016-03-08patch 7.4.1524v7.4.1524Bram Moolenaar
Problem: Channel test fails on BSD. Solution: Break out of the loop when connect() succeeds. (Ozaki Kiichi)
2016-03-08patch 7.4.1522v7.4.1522Bram Moolenaar
Problem: Cannot write channel err to a buffer. Solution: Implement it.
2016-03-08patch 7.4.1517v7.4.1517Bram Moolenaar
Problem: Compiler warning with 64bit compiler. Solution: Add typecast. (Mike Williams)
2016-03-06patch 7.4.1505v7.4.1505Bram Moolenaar
Problem: When channel log is enabled get too many "looking for messages" log entries. Solution: Only give the message after another message.
2016-03-06patch 7.4.1502v7.4.1502Bram Moolenaar
Problem: Writing last-but-one line of buffer to a channel isn't implemented yet. Solution: Implement it. Fix leaving a swap file behind.
2016-03-05patch 7.4.1496v7.4.1496Bram Moolenaar
Problem: Crash when built with GUI but it's not active. (Dominique Pelle) Solution: Check gui.in_use.
2016-03-05patch 7.4.1493v7.4.1493Bram Moolenaar
Problem: Wrong callback invoked for zero-id messages. Solution: Don't use the first one-time callback when the sequence number doesn't match.