Changeset 34825 in vbox
- Timestamp:
- Dec 8, 2010 11:02:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r34776 r34825 133 133 * from the HGCM parameters. */ 134 134 uint32_t mContextID; 135 /** How many times the host service has tried to deliver this 136 * command to the guest. */ 137 uint32_t mTries; 135 138 /** Dynamic structure for holding the HGCM parms */ 136 139 VBOXGUESTCTRPARAMBUFFER mParmBuf; 137 140 138 141 /** The standard constructor. */ 139 HostCmd() : mContextID(0) {}142 HostCmd() : mContextID(0), mTries(0) {} 140 143 }; 141 144 /** The host cmd list + iterator type */ … … 627 630 mHostCmds.pop_front(); 628 631 } 632 else if (rc == VERR_BUFFER_OVERFLOW) 633 { 634 /* If the client understood the message but supplied too little buffer space 635 * don't send this message again and drop it after 3 unsuccessful attempts. 636 * The host then should take care of next actions (maybe retry it with a smaller buffer). */ 637 if (++curCmd.mTries >= 3) 638 { 639 paramBufferFree(&curCmd.mParmBuf); 640 mHostCmds.pop_front(); 641 } 642 } 629 643 } 630 644 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.