Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_middleware
-
Labels:
-
Story Points:0
-
Epic Link:
-
Sprint:TSSW Sprint - Jan 31 - Feb 14
-
Team:Telescope and Site
-
Urgent?:No
Description
The write_from function in ts_tcpip sends a collection of structs. However, it calls await writer.drain() after each struct, which makes a race condition with any other task that writes data to the same socket.
Fix by writing all structs before calling drain.
Pull request: https://github.com/lsst-ts/ts_tcpip/pull/11