-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection forcibly closed using TcpStream
as Box<dyn Write + Send>
#112
Comments
I don't have an immediate solution here, but perhaps I can provide some help. The implementation - where we write to Lines 576 to 617 in fdff7e8
( self.stream is the Box<dyn Write + Send> )
If Fern won't do any buffering itself for Each log message will thus usually result in many calls to If you haven't already done this debugging, could you try calling |
I have since went down a different avenue though for the sake of possible resolution, the receiver is only receiving and never writes back. It also makes no attempts to close the connection or stop listening until given a keyword from the sender. What I was developing was a remote agent for the Windows Update API that would write to the tool a sysadmin would use, providing period progress reports. |
I am attempting to chain my logger to a
TcpStream
in a client/server setup. I can apply the log and proceed to use it, however, it appears to be forcibly closed, presumably byfern
, at a certain point within my process. It is not a timed issue as I can apply a fake workload or sleep and the connection stays open. I am calling the Win32 API using COM objects, though I don't believe that is relevant.I can apply the
meta-logging-in-format
feature and it gets me one function call further for no logical reason as thewindows-rs
crate does not log anywhere whatsoever. I also do not have any structs in the client which directly implementDisplay
and if they implementDebug
, it's only derived.The text was updated successfully, but these errors were encountered: