[logback-dev] [JIRA] Resolved: (LBCLASSIC-80) Problem with SocketAppender

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Mon Nov 3 23:13:21 CET 2008


     [ http://jira.qos.ch/browse/LBCLASSIC-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu resolved LBCLASSIC-80.
---------------------------------

    Resolution: Cannot Reproduce

This is not a bug and the problem was solved by Greg (the reporter).


> Problem with SocketAppender
> ---------------------------
>
>                 Key: LBCLASSIC-80
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-80
>             Project: logback-classic
>          Issue Type: Bug
>          Components: appender
>    Affects Versions: 0.9.9
>         Environment: Windows Xp SP2.
> Two computer one is running the Logback server and the other one client. Both of course of the same local network.
> The code is taken from the Logback-examples/chapter4 
>            Reporter: Greg
>            Assignee: Logback dev list
>         Attachments: SocketClient1.zip
>
>
> From the logback user forum: 
> --------------------------------------------------------------------------------------------
> 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?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list