mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-13 10:15:00 +00:00
Fix RSA signing
This commit is contained in:
+582
-606
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) {
|
||||
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_mdash_conn = mg_ws_connect(mgr, MG_MDASH_URL, mg_mdash_fn, NULL,
|
||||
"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;
|
||||
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;
|
||||
mg_mgr_poll(mgr, 0);
|
||||
#if MG_ENABLE_MDASH
|
||||
mg_mdash_free(mgr);
|
||||
mg_mdash_free(mgr); // Before the final poll, so mdash does not reconnect
|
||||
#endif
|
||||
mg_mgr_poll(mgr, 0);
|
||||
#if MG_ENABLE_FREERTOS_TCP
|
||||
FreeRTOS_DeleteSocketSet(mgr->ss);
|
||||
#endif
|
||||
|
||||
+578
-604
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user