Reduce the sleep time of the send_pending_key thread to 1ms draft

Clean several compilation warnings draft

(0) -30 -10 -2 +2 tip

mercurial