From 25d0a0841f2d3b322da2bef879dcaf6887e4a2a8 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 17 May 2008 11:56:25 +0000 Subject: [PATCH] axeld + bonefish: _WaitForEstablished() must also accept states implying that the state has been established at some point. Fixes bug #2172. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25526 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/network/protocols/tcp/TCPEndpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/network/protocols/tcp/TCPEndpoint.cpp b/src/add-ons/kernel/network/protocols/tcp/TCPEndpoint.cpp index 1f97e5b30b..48dc150dcf 100644 --- a/src/add-ons/kernel/network/protocols/tcp/TCPEndpoint.cpp +++ b/src/add-ons/kernel/network/protocols/tcp/TCPEndpoint.cpp @@ -1117,7 +1117,7 @@ TCPEndpoint::_MarkEstablished() status_t TCPEndpoint::_WaitForEstablished(MutexLocker &locker, bigtime_t timeout) { - while (fState != ESTABLISHED) { + while (fState < ESTABLISHED) { if (socket->error != B_OK) return socket->error;