{"record":{"id":"849d467bf2a8c459","repo":"XX-net/XX-Net","slug":"task-trace-s","errorCode":null,"errorMessage":"task trace:%s","messagePattern":"task trace:(.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"code/default/x_tunnel/local/proxy_session.py","lineNumber":1057,"sourceCode":"                    self.target_on_roads,\n                    speed, roundtrip_time, server_timeout\n                )\n                if g.config.show_debug:\n                    xlog.debug(\"data:%d ack:%d rcvd_no:%d sent_no:%d unack_sent_no:%d\", data_len, ack_len, rcvd_no_len, sent_no_len, unack_snd_sn_len)\n\n                if len(self.conn_list) == 0:\n                    self.target_on_roads = 0\n                elif len(content) >= g.config.max_payload:\n                    self.target_on_roads = \\\n                        min(g.config.concurent_thread_num - g.config.min_on_road, self.target_on_roads + 10)\n                elif data_len <= 200:\n                    self.target_on_roads = max(g.config.min_on_road, self.target_on_roads - 5)\n                self.trigger_more()\n                # xlog.debug(\"target roundtrip: %d, on_road: %d\", self.target_on_roads, self.on_road_num)\n\n                if rtt > 8000:\n                    xlog.warn(\"rtt:%d speed:%d trace:%s\", rtt, speed, response.worker.get_trace())\n                    xlog.warn(\"task trace:%s\", response.task.get_trace())\n                    g.stat[\"slow_roundtrip\"] += 1\n\n                data = payload.get_buf(data_len)\n                ack = payload.get_buf(ack_len)\n                rcvd_no_list = payload.get_buf(rcvd_no_len)\n                sent_no_list = payload.get_buf(sent_no_len)\n                unack_snd_sn = payload.get_buf(unack_snd_sn_len)\n                ext = payload.get_buf(ext_len)\n\n                if len(payload) > 32:\n                    checksum_str = utils.to_str(payload.get(32).tobytes())\n                    checksum = hashlib.md5(bytes(content[:-32])).hexdigest()\n                    if checksum != checksum_str:\n                        xlog.warn(\"checksum error:%s %s\", checksum_str, checksum)\n\n                        data_info[\"stat\"] = \"timeout\"\n                        continue\n","sourceCodeStart":1039,"sourceCodeEnd":1075,"githubUrl":"https://github.com/XX-net/XX-Net/blob/cfa5bc17b67676e467f37ec50766127e0ab5f0aa/code/default/x_tunnel/local/proxy_session.py#L1039-L1075","documentation":"Logged when an x_tunnel round-trip request completed with RTT greater than 8000ms. It is a warning-level diagnostic that dumps the worker trace and task trace so operators can see where time was spent, and increments the slow_roundtrip statistic. It does not abort the session; the roundtrip data is still processed afterwards.","triggerScenarios":"A roundtrip_task in x_tunnel/local/proxy_session.py finishes with rtt > 8000 (milliseconds) after receiving the response from the remote worker. Typical causes are a congested relay, a slow proxy target, or TCP links with high latency/loss.","commonSituations":"Users behind slow or lossy networks (cross-country relays, mobile links), an overloaded XX-Net relay server, or a target site that is itself slow. Also seen when the local network path throttles the tunnel connection.","solutions":["Check network latency to the relay host (ping/mtr) and switch to a closer/faster server in x_tunnel config.","Inspect the printed task/worker trace to identify which hop (connect, TLS, upload, download) consumed the time.","If persistent, reduce target_on_roads / concurrency settings or restart the session to re-select a server.","Check g.stat['slow_roundtrip'] growth rate to confirm whether it is transient or systemic."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Monitor g.stat['slow_roundtrip'] and alert when it grows steadily.","Prefer low-latency relay servers in x_tunnel config.","Warm up/health-check sessions before sending time-sensitive traffic."],"tags":["x-tunnel","latency","roundtrip","network","diagnostics"],"backgroundTag":"high-latency-roundtrip","analyzedSha":"cfa5bc17b67676e467f37ec50766127e0ab5f0aa","analyzedAt":"2026-08-27T19:28:28.225Z","schemaVersion":2},"datasetVersion":"2026-08-28T00:17:15.603Z"}