PiBa-NL
706d5ee0c3
BUG/MINOR: lua: schedule socket task upon lua connect()
...
The parameters like server-address, port and timeout should be set before
process_stream task is called to avoid the stream being 'closed' before it
got initialized properly. This is most clearly visible when running with
tune.lua.forced-yield=1.. So scheduling the task should not be done when
creating the lua socket, but when connect is called. The error
"socket: not yet initialised, you can't set timeouts." would then appear.
Below code for example also shows this issue, as the sleep will
yield the lua code:
local con = core.tcp()
core.sleep(1)
con:settimeout(10)
2018-05-06 14:36:41 +02:00
..
2017-11-24 17:19:12 +01:00
2017-11-24 17:19:12 +01:00
2017-10-31 11:36:12 +01:00
2017-11-16 11:19:46 +01:00
2018-01-25 22:25:40 +01:00
2017-11-24 17:19:12 +01:00
2018-05-03 07:20:40 +02:00
2010-10-30 19:04:33 +02:00
2018-03-08 18:33:48 +01:00
2018-04-26 14:19:33 +02:00
2018-05-03 07:20:40 +02:00
2018-04-25 05:39:49 +02:00
2018-05-02 14:57:58 +02:00
2017-11-24 17:49:53 +01:00
2018-04-26 14:19:33 +02:00
2017-11-24 17:49:53 +01:00
2018-03-21 05:04:01 +01:00
2017-11-27 14:22:21 +01:00
2018-04-26 14:19:33 +02:00
2018-05-06 06:27:34 +02:00
2018-05-06 06:27:34 +02:00
2018-05-06 06:27:34 +02:00
2018-05-06 06:27:34 +02:00
2018-05-06 06:27:34 +02:00
2017-11-24 17:49:53 +01:00
2017-11-24 17:49:53 +01:00
2018-04-26 11:50:30 +02:00
2017-10-31 13:58:32 +01:00
2017-10-31 18:01:18 +01:00
2018-04-16 15:51:57 +02:00
2017-11-09 11:15:45 +01:00
2018-04-26 10:20:44 +02:00
2018-04-17 17:17:58 +02:00
2018-03-21 05:04:01 +01:00
2018-05-06 06:27:09 +02:00
2017-11-24 17:49:53 +01:00
2018-05-03 18:53:42 +02:00
2018-05-06 14:36:41 +02:00
2017-12-30 17:37:08 +01:00
2017-10-31 18:03:24 +01:00
2017-12-03 21:08:39 +01:00
2018-03-27 20:05:13 +02:00
2012-10-08 20:11:03 +02:00
2017-11-07 11:10:24 +01:00
2017-11-07 11:10:24 +01:00
2017-11-07 11:10:24 +01:00
2017-11-07 11:10:24 +01:00
2017-12-14 17:36:39 +01:00
2018-03-23 16:21:50 +01:00
2018-04-05 15:13:54 +02:00
2016-01-11 07:31:35 +01:00
2015-02-03 00:24:16 +01:00
2018-05-04 17:14:39 +02:00
2018-02-22 14:18:45 +01:00
2018-04-26 10:20:44 +02:00
2017-12-22 18:54:05 +01:00
2017-11-24 17:19:12 +01:00
2018-04-19 17:49:48 +02:00
2017-10-13 11:47:19 +02:00
2018-01-22 16:03:25 +01:00
2017-11-24 17:49:53 +01:00
2018-04-28 07:03:39 +02:00
2018-01-29 16:07:25 +01:00
2016-04-14 11:18:22 +02:00
2018-03-16 11:19:07 +01:00
2016-08-10 19:31:58 +02:00
2018-04-26 14:19:33 +02:00
2018-03-26 17:17:59 +02:00
2017-10-31 13:58:33 +01:00
2017-11-24 17:19:12 +01:00
2018-04-28 07:03:39 +02:00
2018-04-26 14:19:33 +02:00
2018-03-23 16:21:50 +01:00
2017-10-25 04:45:48 +02:00
2017-11-08 14:33:36 +01:00
2017-11-24 17:49:53 +01:00
2018-04-30 14:56:19 +02:00
2018-04-06 19:16:18 +02:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2018-02-05 14:24:50 +01:00
2018-04-26 14:19:33 +02:00
2018-05-04 20:11:04 +02:00
2018-01-29 13:53:56 +01:00
2018-02-05 20:11:38 +01:00
2017-10-24 19:54:25 +02:00
2017-11-24 17:19:12 +01:00
2017-12-08 10:37:24 +01:00
2017-11-24 17:19:12 +01:00
2016-04-03 14:17:42 +02:00