mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
fix mg_tls_pending
This commit is contained in:
1 parent
4a164c39b4
commit
7fc96a61ad
3 files changed
+13
-11
No files matched your search
+2
-1
@@ -1390,7 +1390,8 @@ long mg_tls_recv(struct mg_connection *c, void *buf, size_t len) {
|
||||
}
|
||||
|
||||
size_t mg_tls_pending(struct mg_connection *c) {
|
||||
return mg_tls_got_record(c) ? 1 : 0;
|
||||
struct tls_data *tls = (struct tls_data *) c->tls;
|
||||
return tls != NULL ? tls->recv_len : 0;
|
||||
}
|
||||
|
||||
void mg_tls_ctx_init(struct mg_mgr *mgr) {
|
||||
|
||||
Reference in new issue
Block a user