Robustified Socket::Connection, added debugging data for copies/assigns and Socket::Connetion::open() calls for proper socket re-use.
This commit is contained in:
parent
8fe1dbb618
commit
66890c4564
16 changed files with 141 additions and 44 deletions
|
@ -39,7 +39,7 @@ void Controller::uplinkConnection(void * np) {
|
|||
while (Controller::conf.is_active) {
|
||||
if (!uplink) {
|
||||
INFO_MSG("Connecting to uplink at %s:%u", uplink_host.c_str(), uplink_port);
|
||||
uplink = Socket::Connection(uplink_host, uplink_port, true);
|
||||
uplink.open(uplink_host, uplink_port, true);
|
||||
}
|
||||
if (uplink) {
|
||||
if (uplink.spool()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue