Skip to content
Snippets Groups Projects
Commit f742b59d authored by slevy's avatar slevy
Browse files

Initialize the cmdbuf transfer-buffer size to 1 byte.

szg gets mad if we try to select size 0.
parent 0929e1a2
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,10 @@ static char local_id[] = "$Id$";
/*
* $Log$
* Revision 1.12 2009/03/14 21:32:02 slevy
* Initialize the cmdbuf transfer-buffer size to 1 byte.
* szg gets mad if we try to select size 0.
*
* Revision 1.11 2008/07/28 09:22:58 slevy
* Add CMDTEST hook for testing PpCmd packing/unpacking. Looks like it might work.
*
......@@ -1058,7 +1062,7 @@ void Ppszg::onPreExchange( void ) { // called on master only
ppszg.socketList = sockp;
}
cmdbuf_.resize( 0 ); // wipe master->slaves buffer for this cycle
cmdbuf_.resize( 1 ); // wipe master->slaves buffer for this cycle
/* Now read data into the buffer */
bufferedSocket* sock = ppszg.socketList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment