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
..
2018-01-25 22:25:40 +01:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2018-04-16 15:51:57 +02:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2017-10-25 04:45:48 +02:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2016-04-03 14:17:42 +02:00