Nick O'Leary
9df1d44bc4
Merge branch 'issue/1414' of https://github.com/boneskull/node-red into boneskull-issue/1414
2018-07-17 20:28:40 +01:00
Dave Conway-Jones
40f4167894
let TCP in node report remote ip and port when in single packet mode
2018-05-24 21:39:46 +01:00
Christopher Hiller
6e2e36e7a0
tcp: queue messages while connecting; closes #1414
...
- queues messages on a per-client basis while waiting for TCP server
connection
- add `denque` package for performance (`shift()` happens in constant
instead of `Array`'s linear time)
- add tests
- remove a duplicate test in `31-tcp_request.spec.js`
- cap queue at value specified in settings (`tcpMsgQueueSize`); default
to 1000
- add `tcpMsgQueueSize` to `settings.js`
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
2018-03-20 13:45:44 -07:00
Dave Conway-Jones
0968f96982
add a default keepalive to tcp client mode
...
to address #1469
2018-02-06 11:36:14 +00:00
Dave Conway-Jones
d99432bff1
Use correct Buffer.from method rather than constructor
...
exec, tcp, ump and file nodes
2017-06-27 17:11:36 +01:00
Dave Conway-Jones
4dd2d3ac7d
fix tcp node new Buffer alloc size 0
2017-06-27 16:58:17 +01:00
Dave Conway-Jones
a824caf712
update core nodes to use newer Buffer syntax
2017-06-24 13:53:45 +01:00
Dave Conway-Jones
b43d566968
Final TCP node nits - let 0 do it's thing as per every other timeout
2017-05-11 19:11:51 +01:00
Dave Conway-Jones
6b4e15dd0f
fix tcp port not waiting as per info/previous behaviour
...
add separate return immediate mode rather than conflate ideas
2017-05-11 17:24:20 +01:00
Nick O'Leary
7730d0a4f8
Merge branch 'master' into 0.17
2017-05-11 15:10:12 +01:00
Nathanaël Lécaudé
48958f392f
TCP In: Fix error in timout callback ( #1249 )
...
Thanks @natcl
2017-05-09 22:09:21 +01:00
Dave Conway-Jones
b756a8edef
Make tcp send msg more consistent
...
to close #1236
2017-04-20 12:22:36 +01:00
Nathanaël Lécaudé
e574f4516f
Update 31-tcpin.js ( #1235 )
...
TCP-IN: Add check to see if object exists, fixes issue #1222
2017-04-18 16:03:16 +01:00
Dave Conway-Jones
59da705b8f
really close tcp node connection right away (if told to)
...
rather than wait then close
2017-03-06 19:05:16 +00:00
Dave Conway-Jones
94ee465682
clone message before send in stay connected mode
...
to Fix #1137
2017-02-02 09:57:04 +00:00
Nick O'Leary
0a96259ddf
Update copyright header for JS Foundation
2017-01-11 15:24:33 +00:00
Nathanaël Lécaudé
2084ad318f
Tcpgetfix: Another small check ( #1070 )
...
* TCPget: Add another check for clients[connection_id]
2016-11-26 21:16:19 +00:00
Nathanaël Lécaudé
b530c1a43d
TCPGet: Ensure done() is called only once ( #1068 )
...
* Add additional safety checks to avoid acting on non-existent objects
* TCPGet: yet more checks
* TCPGet: seperate connected properties
* TCPGet: properly handle node.done()
2016-11-25 18:14:51 +00:00
Nathanaël Lécaudé
071a04595a
TCPGet: Separated the node.connected property for each instance ( #1062 )
...
* Add additional safety checks to avoid acting on non-existent objects
* TCPGet: yet more checks
* TCPGet: seperate connected properties
2016-11-19 16:25:54 +00:00
Nathanaël Lécaudé
5f5aa0b2f7
TCPGet: Last property check (hopefully) ( #1059 )
...
* Add additional safety checks to avoid acting on non-existent objects
* TCPGet: yet more checks
2016-11-18 11:25:06 +00:00
Nathanaël Lécaudé
eef59fd40e
Add additional safety checks to avoid acting on non-existent objects ( #1057 )
2016-11-17 21:04:38 +00:00
Nathanaël Lécaudé
18731f6055
TCPget: Store incoming messages alongside the client object to keep reference
2016-11-14 13:30:43 -05:00
Nathanaël Lécaudé
d853eca489
Better scope handling
2016-11-10 17:35:44 -05:00
Nathanaël Lécaudé
869ae01da9
Add security checks
2016-11-10 16:45:01 -05:00
Nathanaël Lécaudé
96820418b5
Fix comparison to "" in tcpin
2016-11-10 11:17:27 -05:00
Nathanaël Lécaudé
385d9f16e9
Change scope of clients object
2016-11-09 22:33:55 -05:00
Nathanaël Lécaudé
d56fce37dd
Works when connection is left open
2016-11-09 13:25:19 -05:00
Nathanaël Lécaudé
aef2c9e5cf
First release of multi connection tcpget
2016-11-09 10:15:23 -05:00
Dave Conway-Jones
42f4e0fa86
TCP node: pass on latest input msg properties
...
to close #944
2016-08-04 15:49:38 +01:00
Nathanaël Lécaudé
1541e382e4
Fix escapce character catch in TCPGet + support 0x?? sequences
2016-08-02 12:32:49 -04:00
Nathanaël Lécaudé
6cbc1afb9b
Fix split character in TCP Request node
2016-08-02 11:09:41 -04:00
Dave Conway-Jones
913b09570c
ensure tcp node creates a buffer of size 1 at least
2016-04-10 12:21:56 +01:00
Dave Conway-Jones
7f6915eb59
tcp node add reply (to all) capability
...
if no _session present.
2016-02-12 13:17:50 +00:00
Dave Conway-Jones
9fb958b302
close tcp node connection properly when required.
2015-12-23 20:01:05 +00:00
Dave Conway-Jones
0f7119f468
TCPget don't send nun msg on disconnect
...
(as we now send status anyway)
2015-12-11 14:17:50 +00:00
Dave Conway-Jones
2685a24705
Let TCPget node pass through other msg properties
2015-12-11 14:07:20 +00:00
Dave Conway-Jones
ef2dc4b9e1
One more tidy up for tcp node
2015-12-07 22:39:42 +00:00
Dave Conway-Jones
9baca1772b
Close tcp port for tcpin node (same as previous fix but for input)
2015-12-07 22:39:42 +00:00
Dave Conway-Jones
1280e5bc8b
Close tcp out node more forcibly. (and update status) on redeploy.
2015-12-07 17:41:51 +00:00
Dave Conway-Jones
090d52d678
narrowing in on tcpget fix, reconnect but don't resend.
...
to address issue #759
2015-12-01 13:41:39 +00:00
Dave Conway-Jones
a47ad4842a
Clean up tcpget node connected status.
...
to address #759
2015-11-30 22:05:26 +00:00
Nick O'Leary
fceca703b3
Update tcp node status on reconnect after timeout
...
Closes #757
2015-11-24 22:40:39 +00:00
Dave Conway-Jones
1ee5e50d50
Turn on tcp node socket keepalive when in server mode
2015-10-20 10:13:48 +01:00
Dave Conway-Jones
1bf72a0bc3
correct TCP node server status message
2015-10-09 15:44:22 +01:00
Dave Conway-Jones
2fe568d9ba
Fix TCP node sending data
...
(it’s for the children)
2015-08-17 17:15:44 +01:00
Dave Conway-Jones
2d4979df4d
only set tcp timeout if needs setting.
2015-08-15 22:16:48 +01:00
Nick O'Leary
35cd7cf2b8
Fix tcp status message
2015-07-02 10:56:27 +01:00
Nick O'Leary
726069bc4b
NLS status text in editor not runtime
2015-07-02 10:49:40 +01:00
Nick O'Leary
9ca102cf81
Ensure error messages are toStringed
2015-07-02 10:49:39 +01:00
Nick O'Leary
203bc41b06
Some more node i18n tidy up
2015-07-02 10:49:38 +01:00