gateway-worker连续接收15组数据后自动触发close中业务逻辑

lbfeng

问题描述

gateway-worker单个连接连续接收15组数据,每组数据格式如下,每秒一组数据,测了好多次,在接收完第15组数据后就会自动触发close中的业务逻辑,连接被关闭,手表需要重新连接

程序代码或配置

每秒一组的数据格式
[2024-07-09T16:48:02+08:00][succ] 7f0000010b55000000f0:IWAPEG,14,aaaa1202c803a8840500f900034408328503ffffe51cdd46e642feef0eb10849f3eee440e6ddfd181d0e31af2c130536d08da4519244988bb291dd9c11682b97122ccdf2907a8d38b85ae399ee6cf52a195e4740488a00c9a40081aeae91ef20fc84d021a440afa6eebf30da4ab537810ed3e9d7d7fedfef02253225542c4e101bb8d638a0f18df79d01c5a0fa5d2af838bb173ed6d59fc497fcb7b4e3fd01f916d42afa40b2462a323b0a30de96bc81a70aa4abb349d024f0e80a18163615bc0c7100aefad700b50df815800aa7eef8d404cccbe36311923f5452a93f280b9ace6b98567d27889dba82fc892b322899047ae5cce3bbec6edef9bd42a6e3b9d5e253f25cd507a3b6856586e596c3a257a988b572c457c9e8bdfeaa48a29db1ffd39af69f0904013ae03db59f9e3fb312eced21412322ef53b95caa12beffd434de21f4c72db461c5571e0615adb091d1ae8ccdd6c5f0b25abee2f7813881565f3fb804f1cc92bffdeda932ca545237a800a8e78bf68e093d0470fd9b17004467541e233bd570a580b3d4de68f794e91bd0d5d3c90088351d42b91a35d633acdbaf95c997d9e8dac7de1fee31014c0c6512bb194f1a520c0ef63eecf9f636ffd5f29cd00caedea125a8d4bdc7e2660a3922fe117edc91a53a94b5b472ea1207900853fe8e0456182c21dc13f402c50de4367f5584465d1473f340042c301040f2205af049e227fdfe1aab0caad3c3988180c98ebdae54c659d63ee452f353fd56fc64ec13d0a3b67fb2f9cd10fcb020cf1abdec36b868a40cb5dfd718f072fdff08d4131a11e1fc8dd676aeb097b59e41c25ff2281aa227701a3e001be32bc702b297b7b5e3b1200a41bc2646e559af6da845c474e1a1eeecf4aa02a20b90fd26d90dbd2dc450ef7217531cb90299ea8ced0a00980827f50ada21d419ecbd0a8719a615e50aad0112fa4ff73efc9905240508ecc1c8f7ad22a9c8b4c7bd89c564da24fe81153c057dd31aa3fc9aa9b9ebde62f238f7acfe7a085e03e4e4ddb957a248b3e8dd8103290e97fedae7afdb2ddc23dcb2d8cdd3fbdeeefcd91a171f2c09a7f6a7f7e100c7fbd1ebf9f04b168a3ea13a890a75dc4cd771f5640e8d0824ee00d7b5d8fdf6942c485e4869eb4228feddcc3bc1aecf77e0bdf2c10cd41c530a05d86fb071b80ee141fab6e43ab9f9b1fdd25df1e4e53cb7f5a08fb93ce747f543d5e7af6eb0d5d546f0a5e70bc997c424e8a026964ee34c632aea0bc5049914ae202f1aa510e018f2333c49d4422426691439188d1fdf1180f327de50e352f89f0afb1035130c127009eaf9b3ee27efabfdc7055bfa42e4e1d88ce1aefb6f1b8f2f4726a4fda7c4ce914c7c248b18b402e4410af01494fe62d32aac1ba1fbba6be8140bed1330f801cb7cadc4b879e5c5111514f7ee52bed1aa93b7a2d0e0e4b6f3e60547109c0239da49b6d9b7e5d86ef9880000,#

触发close中业务逻辑
[2024-07-09T16:48:08+08:00][sql] UPDATE `xl_device_client_bind`  SET `status` = 2 , `update_time` = '2024-07-09 16:48:08'  WHERE  `client_id` = '7f0000010b55000000f0' [ RunTime:0.095303s ]
112 2 0
2个回答

不败少龙

这里有数据表的操作吗?

  • lbfeng 10天前

    接收到数据后还没添加数据表的操作,close中有数据表的操作

小W

确定一下是手表自动断开了,还是服务导致的

  • 暂无评论
×
🔝