Changeset 31254 in vbox
- Timestamp:
- Jul 30, 2010 3:42:19 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64269
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImplTeleporter.cpp
r30777 r31254 40 40 #include <VBox/com/string.h> 41 41 #include "VBox/com/ErrorInfo.h" 42 42 43 43 44 /******************************************************************************* … … 288 289 { 289 290 int vrc = RTTcpSgWriteL(pState->mhSocket, 2, pszCommand, strlen(pszCommand), "\n", sizeof("\n") - 1); 290 if (RT_SUCCESS(vrc))291 vrc = RTTcpFlush(pState->mhSocket);292 291 if (RT_FAILURE(vrc)) 293 292 return setError(E_FAIL, tr("Failed writing command '%s': %Rrc"), pszCommand, vrc); … … 529 528 EofHdr.cb = fCanceled ? UINT32_MAX : 0; 530 529 int rc = RTTcpWrite(pState->mhSocket, &EofHdr, sizeof(EofHdr)); 531 if (RT_SUCCESS(rc))532 rc = RTTcpFlush(pState->mhSocket);533 530 if (RT_FAILURE(rc)) 534 531 { … … 540 537 { 541 538 ASMAtomicWriteBool(&pState->mfStopReading, true); 542 RTTcpFlush(pState->mhSocket);543 539 } 544 540 … … 639 635 640 636 /* 641 * Try connect to the destination machine .637 * Try connect to the destination machine, disable Nagel. 642 638 * (Note. The caller cleans up mhSocket, so we can return without worries.) 643 639 */ … … 646 642 return setError(E_FAIL, tr("Failed to connect to port %u on '%s': %Rrc"), 647 643 pState->muPort, pState->mstrHostname.c_str(), vrc); 644 vrc = RTTcpSetSendCoalescing(pState->mhSocket, false /*fEnable*/); 645 AssertRC(vrc); 648 646 649 647 /* Read and check the welcome message. */ … … 1197 1195 teleporterTrgUnlockMedia(pState); 1198 1196 } 1199 RTTcpFlush(pState->mhSocket);1200 1197 return rc; 1201 1198 } … … 1224 1221 if (RT_FAILURE(rc)) 1225 1222 LogRel(("Teleporter: RTTcpWrite(,%s,%zu) -> %Rrc\n", szMsg, cch, rc)); 1226 RTTcpFlush(pState->mhSocket);1227 1223 return rc; 1228 1224 }
Note:
See TracChangeset
for help on using the changeset viewer.