Reading this method, I realize I'm not quite sure what remaining_stream_ is counting. There's no comment in the .h file for it. Oh! Is this the remaining *total* streams on the lifetime of the connection? This is not your responsibility as part of this, but if you wouldn't might it would be nice to have a comment in the .h file.