Add blocking with optional timeout, and effective buffer size

Change-Id: I15d133bcbe257e1ee767e9dd155e2b646019d59e
6 files changed