mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +00:00
Fix RSA signing
This commit is contained in:
1 parent
567963b034
commit
c30afffcee
4 files changed
+1163
-1211
No files matched your search
+581
-605
File diff suppressed because it is too large.
Load diff
+3
-1
@@ -157,7 +157,9 @@ void mg_mdash_init(struct mg_mgr *mgr) {
|
|||||||
|
|
||||||
void mg_mdash_poll(struct mg_mgr *mgr) {
|
void mg_mdash_poll(struct mg_mgr *mgr) {
|
||||||
static uint64_t timer = 0;
|
static uint64_t timer = 0;
|
||||||
if (mg_mdash_conn == NULL && mg_timer_expired(&timer, 1000, mg_millis())) {
|
// No RPC handlers means mdash was never set up, or mg_mdash_free() ran
|
||||||
|
if (mg_mdash_conn == NULL && mgr->rpcs != NULL &&
|
||||||
|
mg_timer_expired(&timer, 1000, mg_millis())) {
|
||||||
MG_INFO(("Connecting to %s", MG_MDASH_URL));
|
MG_INFO(("Connecting to %s", MG_MDASH_URL));
|
||||||
mg_mdash_conn = mg_ws_connect(mgr, MG_MDASH_URL, mg_mdash_fn, NULL,
|
mg_mdash_conn = mg_ws_connect(mgr, MG_MDASH_URL, mg_mdash_fn, NULL,
|
||||||
"Origin: %s\r\n"
|
"Origin: %s\r\n"
|
||||||
|
|||||||
@@ -299,10 +299,10 @@ void mg_mgr_free(struct mg_mgr *mgr) {
|
|||||||
while (t != NULL) tmp = t->next, mg_free(t), t = tmp;
|
while (t != NULL) tmp = t->next, mg_free(t), t = tmp;
|
||||||
mgr->timers = NULL; // Important. Next call to poll won't touch timers
|
mgr->timers = NULL; // Important. Next call to poll won't touch timers
|
||||||
for (c = mgr->conns; c != NULL; c = c->next) c->is_closing = 1;
|
for (c = mgr->conns; c != NULL; c = c->next) c->is_closing = 1;
|
||||||
mg_mgr_poll(mgr, 0);
|
|
||||||
#if MG_ENABLE_MDASH
|
#if MG_ENABLE_MDASH
|
||||||
mg_mdash_free(mgr);
|
mg_mdash_free(mgr); // Before the final poll, so mdash does not reconnect
|
||||||
#endif
|
#endif
|
||||||
|
mg_mgr_poll(mgr, 0);
|
||||||
#if MG_ENABLE_FREERTOS_TCP
|
#if MG_ENABLE_FREERTOS_TCP
|
||||||
FreeRTOS_DeleteSocketSet(mgr->ss);
|
FreeRTOS_DeleteSocketSet(mgr->ss);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+577
-603
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user