[logback-user] SocketAppender

Greg Flex greg.flex at gmail.com
Mon Nov 3 20:27:57 CET 2008


Hi all,
So I still have some problems with the socketAppender.
I'm using the server and the client (sample code) that comes with the
Logback.
I'm sending a string to a server that is about 4KB in size. (in the "for"
loop)
When I'm executing this "for" loop once or twice or even 4 times
nothing gets transmitted from the client to the server. I get nothing
just a message that server is waiting for data, then I get message
saying that the socket connections has been closed.
Now, when I'm executing the same exactly code and
I'm running the same loop (that sends the 4KB string over to the server)
but say 10 or more times, everything works!
I'm not an expert on how TCP/IP works but
it looks to me that the socket closes the connection before the data I'm
sending
gets actually transmitted to the server.
How do I keep the socket open until the data gets to the server?
Any suggestion?
Thanks
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20081103/650c3302/attachment.htm 


More information about the Logback-user mailing list