summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2017-10-27 14:56:20 +0000
committerTor Egge <Tor.Egge@oath.com>2017-10-27 14:56:20 +0000
commit54f460f1842cf4a202ce0358470c631d018e0451 (patch)
tree46dc4fda7e348f7db6caf346bab9de6e847990a6
parent1ce9039e242310b5d04190e7758dbaf72edc294b (diff)
Rename method for clarity, new name is writePendingAfterConnect().
-rw-r--r--fnet/src/vespa/fnet/connection.cpp4
-rw-r--r--fnet/src/vespa/fnet/connection.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/fnet/src/vespa/fnet/connection.cpp b/fnet/src/vespa/fnet/connection.cpp
index 96a18dc9727..f2a4ab3a23d 100644
--- a/fnet/src/vespa/fnet/connection.cpp
+++ b/fnet/src/vespa/fnet/connection.cpp
@@ -708,7 +708,7 @@ FNET_Connection::HandleReadEvent()
bool
-FNET_Connection::enterConnectedState()
+FNET_Connection::writePendingAfterConnect()
{
std::unique_lock<std::mutex> guard(_ioc_lock);
_state = FNET_CONNECTED; // SetState(FNET_CONNECTED)
@@ -727,7 +727,7 @@ FNET_Connection::HandleWriteEvent()
case FNET_CONNECTING:
error = _socket.get_so_error();
if (error == 0) { // connect ok
- if (!enterConnectedState()) {
+ if (!writePendingAfterConnect()) {
EnableWriteEvent(false);
}
} else {
diff --git a/fnet/src/vespa/fnet/connection.h b/fnet/src/vespa/fnet/connection.h
index ffb160bb904..ef883d84989 100644
--- a/fnet/src/vespa/fnet/connection.h
+++ b/fnet/src/vespa/fnet/connection.h
@@ -215,7 +215,7 @@ private:
**/
bool Write(bool direct);
- bool enterConnectedState();
+ bool writePendingAfterConnect();
public:
/**