There was memory leak in DoguScreen that broadcast screen buffer. Constantly reconnecting tcp connection( {"type":"livecheck"}) makes memoryleak. I don't know why but I detected it with Instruments > Activity Monitor, the memory of DoguScreen was about 7 Mib buf after 20 minutes, It reaches 9 Mib and in this time, go-device-controller's new tcpclient can't read screen buffer with "EOF" error
The Livecheck session changed to keep tcp connection
Check go-device-controller's surface status in ios-device-agent, and if there is problem in surface, restart ios-device-agent
Does memoryleak fixed?
I can't guarantee it 100%, but I confirmed that it maintained 7.14 Mib when turned on for about 4 hours.
PR Template
Checklist
Related issue
ios-device-agent
There was memory leak in DoguScreen that broadcast screen buffer. Constantly reconnecting tcp connection( {"type":"livecheck"}) makes memoryleak. I don't know why but I detected it with Instruments > Activity Monitor, the memory of DoguScreen was about 7 Mib buf after 20 minutes, It reaches 9 Mib and in this time, go-device-controller's new tcpclient can't read screen buffer with "EOF" error
Does memoryleak fixed?