aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-02-22 19:41:23 +0000
committerDeterminant <[email protected]>2020-02-22 19:41:23 +0000
commitc6081c9fdb833f56864f99b87c4254a1f2896e94 (patch)
tree9c1df0c8b99aa5d84efe8d10c7778d8b401e81f5
parent3707146f42ccc066edf214cc77118f91b687e47b (diff)
...
-rw-r--r--include/salticidae/network.h2
-rw-r--r--src/conn.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/salticidae/network.h b/include/salticidae/network.h
index 19d6db0..27fc6d6 100644
--- a/include/salticidae/network.h
+++ b/include/salticidae/network.h
@@ -1155,7 +1155,7 @@ int32_t PeerNetwork<O, _, __>::conn_peer(const PeerId &pid, int32_t ntry, double
/* has to terminate established connection *before* making the next
* attempt */
if (p->state == Peer::State::DISCONNECTED && ntry)
- start_active_conn(p.get());
+ p->ev_retry_timer.add(0);
else if (p->state == Peer::State::CONNECTED)
{
p->state = Peer::State::RESET;
diff --git a/src/conn.cpp b/src/conn.cpp
index af15276..568edee 100644
--- a/src/conn.cpp
+++ b/src/conn.cpp
@@ -247,7 +247,7 @@ void ConnPool::Conn::_recv_data_tls_handshake(const conn_t &conn, int, int) {
/* do not start receiving data immediately */
conn->recv_data_func = _recv_data_dummy;
conn->ev_socket.del();
- conn->ev_socket.add(FdEvent::WRITE);
+ //conn->ev_socket.add(FdEvent::WRITE);
conn->peer_cert = new X509(conn->tls->get_peer_cert());
conn->worker->enable_send_buffer(conn, conn->fd);
auto cpool = conn->cpool;