Smarter way to increase the parent/child pipe's socket buffer. (Craig

Leres).

This is from #383.
This commit is contained in:
Robin Sommer 2011-02-04 17:58:19 -08:00
parent 51b3efbb1a
commit 4d12ac861d
2 changed files with 37 additions and 19 deletions

View file

@ -297,6 +297,8 @@ protected:
bool SendToChild(char type, Peer* peer, int nargs, ...); // can send uints32 only
bool SendToChild(ChunkedIO::Chunk* c);
void SetSocketBufferSize(int fd, int opt, const char *what, int size, int verbose);
private:
enum { TYPE, ARGS } msgstate; // current state of reading comm.
Peer* current_peer;