Bram Moolenaar
2368917d8f
patch 7.4.1325
...
Problem: Channel test fails on difference between Unix and DOS line endings.
Solution: Strip off CR. Make assert show difference better.
2016-02-15 22:37:37 +01:00
Bram Moolenaar
d807036d10
patch 7.4.1324
...
Problem: Channels with pipes don't work on MS-Windows.
Solution: Add pipe I/O support. (Yasuhiro Matsumoto)
2016-02-15 21:56:54 +01:00
Bram Moolenaar
3bece9fee9
patch 7.4.1322
...
Problem: Crash when unletting the variable that holds the channel in a
callback function. (Christian Robinson)
Solution: Increase the reference count while invoking the callback.
2016-02-15 20:39:46 +01:00
Bram Moolenaar
16eb4f8800
patch 7.4.1319
...
Problem: Tests fail on MS-Windows and on Unix with GUI.
Solution: Fix unregistering.
2016-02-14 23:02:34 +01:00
Bram Moolenaar
7b3ca76a45
patch 7.4.1318
...
Problem: Channel with pipes doesn't work in GUI.
Solution: Register input handlers for pipes.
2016-02-14 19:13:43 +01:00
Bram Moolenaar
7707344dde
patch 7.4.1315
...
Problem: Using a channel handle does not allow for freeing it when unused.
Solution: Add the Channel variable type.
2016-02-13 23:23:53 +01:00
Bram Moolenaar
e516c39ee9
patch 7.4.1314
...
Problem: Warning for uninitialzed variable.
Solution: Initialize it. (Dominique Pelle)
2016-02-13 18:50:38 +01:00
Bram Moolenaar
6463ca229c
patch 7.4.1310
...
Problem: Jobs don't open a channel.
Solution: Create pipes and add them to the channel. Add ch_logfile().
Only Unix for now.
2016-02-13 17:04:46 +01:00
Bram Moolenaar
f6157284de
patch 7.4.1299
...
Problem: When the server sends a message with ID zero the channel handler
is not invoked. (Christian J. Robinson)
Solution: Recognize zero value for the request ID. Add a test for invoking
the channel handler.
2016-02-10 21:07:14 +01:00
Bram Moolenaar
e56bf15c16
patch 7.4.1293
...
Problem: Sometimes a channel may hang waiting for a message that was
already discarded. (Ken Takata)
Solution: Store the ID of the message blocking on in the channel.
2016-02-08 23:23:42 +01:00
Bram Moolenaar
0fa98e7b85
patch 7.4.1289
...
Problem: Channel test fails on MS-Windows, connect() takes too long.
Solution: Adjust the test for MS-Windows using "waittime".
2016-02-07 22:21:19 +01:00
Bram Moolenaar
ae8eb3ca92
patch 7.4.1288
...
Problem: ch_sendexpr() does not use JS encoding.
Solution: Use the encoding that fits the channel mode. Refuse using
ch_sendexpr() on a raw channel.
2016-02-07 21:59:26 +01:00
Bram Moolenaar
7a84dbe6be
patch 7.4.1286
...
Problem: ch_open() with a timeout doesn't work correctly.
Solution: Change how select() is used. Don't give an error on timeout.
Add a test for ch_open() failing.
2016-02-07 21:29:00 +01:00
Bram Moolenaar
595e64e259
patch 7.4.1279
...
Problem: jsonencode() is not producing strict JSON.
Solution: Add jsencode() and jsdecode(). Make jsonencode() and jsondecode()
strict.
2016-02-07 19:19:53 +01:00
Bram Moolenaar
55fab439a6
patch 7.4.1278
...
Problem: When jsonencode() fails it still returns something.
Solution: Return an empty string on failure.
2016-02-07 16:53:13 +01:00
Bram Moolenaar
fbc4b4db3a
patch 7.4.1276
...
Problem: Warning for not using return value of fcntl().
Solution: Explicitly ignore the return value.
2016-02-07 15:14:01 +01:00
Bram Moolenaar
26dfc41335
patch 7.4.1268
...
Problem: Waittime is used as seconds instead of milliseconds. (Hirohito
Higashi)
Solution: Divide by 1000.
2016-02-06 18:18:54 +01:00
Bram Moolenaar
6076fe1986
patch 7.4.1264
...
Problem: Crash when receiving an empty array.
Solution: Check for array with wrong number of arguments. (Damien)
2016-02-05 22:49:56 +01:00
Bram Moolenaar
4d919d748e
patch 7.4.1263
...
Problem: ch_open() hangs when the server isn't running.
Solution: Add a timeout. Use a dict to pass arguments. (Yasuhiro Matsumoto)
2016-02-05 22:36:41 +01:00
Bram Moolenaar
a07fec9c85
patch 7.4.1262
...
Problem: The channel callback is not invoked.
Solution: Make a list of pending callbacks.
2016-02-05 21:04:08 +01:00
Bram Moolenaar
4b6a6dcbe7
patch 7.4.1261
...
Problem: Pending channel messages are garbage collected. Leaking memory in
ch_sendexpr(). Leaking memory for a decoded JSON string.
Solution: Mark the message list as used. Free the encoded JSON. Don't save
the JSON string.
2016-02-04 22:49:49 +01:00
Bram Moolenaar
a8343c1808
patch 7.4.1260
...
Problem: The channel feature doesn't work on Win32 GUI.
Solution: Use WSAGetLastError(). (Ken Takata)
2016-02-04 22:09:48 +01:00
Bram Moolenaar
66624ff0d9
patch 7.4.1255
...
Problem: Crash for channel "eval" command without third argument.
Solution: Check for missing argument.
2016-02-03 23:59:43 +01:00
Bram Moolenaar
3b05b135e3
patch 7.4.1254
...
Problem: Opening a second channel causes a crash. (Ken Takata)
Solution: Don't re-allocate the array with channels.
2016-02-03 23:25:07 +01:00
Bram Moolenaar
fcb1e3d168
patch 7.4.1249
...
Problem: Crash when the process a channel is connected to exits.
Solution: Use the file descriptor properly. Add a test. (Damien)
Also add a test for eval().
2016-02-03 21:32:46 +01:00
Bram Moolenaar
d7ece1008e
patch 7.4.1246
...
Problem: The channel functionality isn't tested.
Solution: Add a test using a Python test server.
2016-02-02 23:23:02 +01:00
Bram Moolenaar
df5b27b20e
patch 7.4.1239
...
Problem: JSON message after the first one is dropped.
Solution: Put remainder of message back in the queue.
2016-02-02 18:43:17 +01:00
Bram Moolenaar
56ead341a7
patch 7.4.1238
...
Problem: Can't handle two messages right after each other.
Solution: Find the end of the JSON. Read more when incomplete. Add a C
test for the JSON decoding.
2016-02-02 18:20:08 +01:00
Bram Moolenaar
14ad611ca4
patch 7.4.1233
...
Problem: Channel command may cause a crash.
Solution: Check for NULL argument. (Damien)
2016-02-01 21:47:13 +01:00
Bram Moolenaar
19d2f15898
patch 7.4.1231
...
Problem: JSON messages are not parsed properly.
Solution: Queue received messages.
2016-02-01 21:38:19 +01:00
Bram Moolenaar
fb1f62691e
patch 7.4.1229
...
Problem: "eval" and "expr" channel commands don't work yet.
Solution: Implement them. Update the error numbers. Also add "redraw".
2016-01-31 20:24:32 +01:00
Bram Moolenaar
20fb9f3464
patch 7.4.1217
...
Problem: Execution of command on channel doesn't work yet.
Solution: Implement the "ex" and "normal" commands.
2016-01-30 23:20:33 +01:00
Bram Moolenaar
7454a06e26
patch 7.4.1205
...
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
2016-01-30 15:14:10 +01:00
Bram Moolenaar
f12d983dea
patch 7.4.1195
...
Problem: The channel feature does not work in the MS-Windows console.
Solution: Add win32 console support. (Yasuhiro Matsumoto)
2016-01-29 21:11:25 +01:00
Bram Moolenaar
83162468b3
patch 7.4.1194
...
Problem: Compiler warning for not using return value of fwrite().
Solution: Return OK/FAIL. (Charles Campbell)
2016-01-28 23:10:07 +01:00
Bram Moolenaar
b8b6511fc1
patch 7.4.1193
...
Problem: Can't build the channel feature on MS-Windows.
Solution: Add #ifdef HAVE_POLL.
2016-01-28 23:01:49 +01:00
Bram Moolenaar
3b5f929b18
patch 7.4.1191
...
Problem: The channel feature isn't working yet.
Solution: Add the connect(), disconnect(), sendexpr() and sendraw()
functions. Add initial documentation. Add a demo server.
2016-01-28 22:37:01 +01:00
Bram Moolenaar
85be35f33e
patch 7.4.1187
...
Problem: MS-Windows channel code only supports one channel. Doesn't build
without netbeans support.
Solution: Get the channel index from the socket in the message. Closes #600 .
2016-01-27 21:08:18 +01:00
Bram Moolenaar
54e09e7198
patch 7.4.1184
...
Problem: MS-Windows build is still broken.
Solution: Change nbsock to ch_fd.
2016-01-26 23:49:31 +01:00
Bram Moolenaar
fb4194e4e0
patch 7.4.1183
...
Problem: MS-Windows build is broken.
Solution: Remove init in wrong place.
2016-01-26 23:39:55 +01:00
Bram Moolenaar
d04a020a8a
patch 7.4.1182
...
Problem: Still socket code intertwined with netbeans.
Solution: Move code from netbeans.c to channel.c
2016-01-26 23:30:18 +01:00
Bram Moolenaar
e0874f8cbc
patch 7.4.1169
...
Problem: The socket I/O is intertwined with the netbeans code.
Solution: Start refactoring the netbeans communication to split off the
socket I/O. Add the +channel feature.
2016-01-24 20:36:41 +01:00