summaryrefslogtreecommitdiffstats
path: root/servers/auth_server_lin/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-15 19:16:29 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-15 19:16:29 -0500
commit124c87bfad3c10265307d3155d7441648224d031 (patch)
tree07cc66d62903b67e3853d69461bf0077b5cae5fe /servers/auth_server_lin/src
parent85a646ac4162926c13f0cec836e8d55d5c4ec4d3 (diff)
downloadulab-124c87bfad3c10265307d3155d7441648224d031.tar.gz
ulab-124c87bfad3c10265307d3155d7441648224d031.zip
Add write buffer to krb client and server sockets
Diffstat (limited to 'servers/auth_server_lin/src')
-rw-r--r--servers/auth_server_lin/src/auth_conn.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/auth_server_lin/src/auth_conn.cpp b/servers/auth_server_lin/src/auth_conn.cpp
index f2549d3..c9a377f 100644
--- a/servers/auth_server_lin/src/auth_conn.cpp
+++ b/servers/auth_server_lin/src/auth_conn.cpp
@@ -280,11 +280,13 @@ int AuthSocket::servLoop() {
if (canReadData()) {
reclen = readBlock(m_loopBuffer.data(), m_loopBuffer.size());
m_servClientSocket->writeBlock(m_loopBuffer.data(), reclen);
+ m_servClientSocket->flush();
transferred_data = true;
}
if (m_servClientSocket->canReadData()) {
reclen = m_servClientSocket->readBlock(m_loopBuffer.data(), m_loopBuffer.size());
writeBlock(m_loopBuffer.data(), reclen);
+ flush();
transferred_data = true;
}
}