projects
/
project
/
ustream-ssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af7c353
)
ustream-ssl: poll connection on incomplete reads
author
Felix Fietkau
<nbd@nbd.name>
Thu, 18 Apr 2024 12:54:28 +0000
(14:54 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 18 Apr 2024 12:54:42 +0000
(14:54 +0200)
Reduces uloop roundtrips
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ustream-ssl.c
patch
|
blob
|
history
diff --git
a/ustream-ssl.c
b/ustream-ssl.c
index c4e79710998e0caeaa2b0af553809f09cf84b10b..4af5a4408f14814ac0e6a8104827eaf90d2ca755 100644
(file)
--- a/
ustream-ssl.c
+++ b/
ustream-ssl.c
@@
-84,6
+84,11
@@
static bool __ustream_ssl_poll(struct ustream *s)
break;
ret = __ustream_ssl_read(us, buf, len);
+ if (ret == U_SSL_PENDING) {
+ ustream_poll(us->conn);
+ ret = __ustream_ssl_read(us, buf, len);
+ }
+
switch (ret) {
case U_SSL_PENDING:
return more;