Overhauled SSL to use explicit BIO buffers
This commit is contained in:
@@ -505,12 +505,13 @@ void DrivenEngine::drv_sent_outgoing(uint32_t chid, uint32_t nbytes) {
|
||||
}
|
||||
|
||||
void DrivenEngine::drv_recv_incoming(uint32_t chid, uint32_t nbytes, const char *bytes) {
|
||||
std::string_view sbytes(bytes, nbytes);
|
||||
if (nbytes > 0) {
|
||||
Channel *ch = get_chid(chid);
|
||||
if (ch->sb_drvout_ != ch->sb_out_) {
|
||||
ch->feed_readline(bytes);
|
||||
ch->feed_readline(sbytes);
|
||||
} else {
|
||||
ch->sb_in_->write_bytes(bytes);
|
||||
ch->sb_in_->write_bytes(sbytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user