This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Data buffering
#8
Try adding client:close() after client:send(cmd). But it all depends on how TCP server is created, it might still refuse connections for some time even when close is called. You might want to have and always-open TCP connection and do reconnect if send fails because remote TCP server might disconnect clients on timeout. This is all in theory and should be tested :) If close does not solve this issue I'll provide an example with automatic retry.
Reply


Messages In This Thread
Data buffering - by buuuudzik - 22.09.2016, 19:19
RE: Data buffering - by admin - 22.09.2016, 19:50
RE: Data buffering - by admin - 23.09.2016, 06:47
RE: Data buffering - by buuuudzik - 23.09.2016, 07:20
RE: Data buffering - by buuuudzik - 30.09.2016, 09:19
RE: Data buffering - by admin - 30.09.2016, 10:15
RE: Data buffering - by buuuudzik - 30.09.2016, 10:39
RE: Data buffering - by admin - 30.09.2016, 11:02
RE: Data buffering - by buuuudzik - 30.09.2016, 11:30
RE: Data buffering - by admin - 30.09.2016, 12:12
RE: Data buffering - by buuuudzik - 30.09.2016, 13:04

Forum Jump: