Software /
code /
prosody
Comparison
core/s2smanager.lua @ 3957:b5223a74e07e
s2smanager: new_outgoing(): Destroy session if first connection attempt fails immediately (e.g. can't create sockets)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Dec 2010 04:56:02 +0000 |
parent | 3953:174edf85a916 |
child | 3958:8bd0b2d4b9b0 |
comparison
equal
deleted
inserted
replaced
3956:32ec833c2edf | 3957:b5223a74e07e |
---|---|
189 | 189 |
190 initialize_filters(host_session); | 190 initialize_filters(host_session); |
191 | 191 |
192 if connect ~= false then | 192 if connect ~= false then |
193 -- Kick the connection attempting machine into life | 193 -- Kick the connection attempting machine into life |
194 attempt_connection(host_session); | 194 if not attempt_connection(host_session) then |
195 -- Intentionally not returning here, the | |
196 -- session is needed, connected or not | |
197 destroy_session(host_session); | |
198 end | |
195 end | 199 end |
196 | 200 |
197 if not host_session.sends2s then | 201 if not host_session.sends2s then |
198 -- A sends2s which buffers data (until the stream is opened) | 202 -- A sends2s which buffers data (until the stream is opened) |
199 -- note that data in this buffer will be sent before the stream is authed | 203 -- note that data in this buffer will be sent before the stream is authed |