Fix CTP vnctptd segfault restart loop by serializing reconnect.

Skip duplicate auto-connect when TD is logged in, stop aggressive query_position hooks, and throttle position refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-26 00:49:17 +08:00
parent 9f48f22d16
commit 7133a0e448
4 changed files with 114 additions and 210 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ from vnpy_bridge import ctp_try_auto_reconnect
logger = logging.getLogger(__name__)
RECONNECT_INTERVAL_SEC = 10
RECONNECT_INTERVAL_SEC = 60
def _auto_reconnect_enabled() -> bool: