Software /
code /
prosody
Comparison
net/server_epoll.lua @ 7556:1f777b38b66c
net.server_epoll: Make addclient conform to API (expected by net.http.request)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Aug 2016 21:11:09 +0200 |
parent | 7555:f3abb5f891eb |
child | 7557:f0dd902534b0 |
comparison
equal
deleted
inserted
replaced
7555:f3abb5f891eb | 7556:1f777b38b66c |
---|---|
471 client._tls = false; | 471 client._tls = false; |
472 client:starttls(); | 472 client:starttls(); |
473 else | 473 else |
474 client:setflags(true, true); | 474 client:setflags(true, true); |
475 end | 475 end |
476 return client; | 476 return client, conn; |
477 end | 477 end |
478 | 478 |
479 local function link(from, to) | 479 local function link(from, to) |
480 from.listeners = setmetatable({ | 480 from.listeners = setmetatable({ |
481 onincoming = function (_, data) | 481 onincoming = function (_, data) |