logback icon indicating copy to clipboard operation
logback copied to clipboard

[LOGBACK-1019] Added code to close the DatagramSocket

Open nrkkalyan opened this issue 11 years ago • 15 comments

I am surprised to see there is no close method called on the DatagramSocket this may lead to a UDP leak. Kindly let me know if there is anything wrong in my code.

nrkkalyan avatar Dec 17 '14 16:12 nrkkalyan

Can you please let me know why does the build failed, as I tried to build the same way and everything went successful capture

nrkkalyan avatar Dec 18 '14 11:12 nrkkalyan

It says

Tests in error:

JettyBasicTest.postContentConverter:123 » IndexOutOfBounds Index: 0, Size: 0

in the output. You can find that output if you click on Details in the Travis message.

huxi avatar Dec 18 '14 14:12 huxi

It's probably due to

synchronized (listAppender) {
  listAppender.wait(100); //this depends on how fast the computer running the test is...
}

davidkarlsen avatar Dec 18 '14 14:12 davidkarlsen

Is this fix related to an issue I'm currently seeing?

|-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [syslog]
|-WARN in ch.qos.logback.classic.net.SyslogAppender[syslog] - Failed to bind to a random datagram socket. Will try to reconnect later. java.net.SocketException: maximum number of DatagramSockets reached
    at java.net.SocketException: maximum number of DatagramSockets reached

It would be great to get this merged in if it is!

adlawson avatar Feb 09 '15 12:02 adlawson

Yes it is.

Regards /Kalyan 0733312584

PS: I am bad at spelling because I use mobile.

On 9 feb 2015, at 13:03, Andrew Lawson [email protected] wrote:

Is this fix related to the issue I'm currently seeing?

|-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [syslog] |-WARN in ch.qos.logback.classic.net.SyslogAppender[syslog] - Failed to bind to a random datagram socket. Will try to reconnect later. java.net.SocketException: maximum number of DatagramSockets reached at java.net.SocketException: maximum number of DatagramSockets reached It would be great to get this merged in if it is!

— Reply to this email directly or view it on GitHub.

nrkkalyan avatar Feb 09 '15 16:02 nrkkalyan

This is becoming a pretty serious blocker for us now. Are there any contributors available to get this reviewed and released?

adlawson avatar Feb 16 '15 11:02 adlawson

Thanks for the contribution, @nrkkalyan. Please add a comment here with release notes (see rule P7 of CONTRIBUTING.md).

tony19 avatar Feb 25 '15 03:02 tony19

I was actually looking for raw HTML that describes your change, which would be added to the release notes page.

tony19 avatar Feb 26 '15 06:02 tony19

RELEASE COMMENT
<p>Fixed <a href="http://jira.qos.ch/browse/LOGBACK-1019">LOGBACK-1019</a> 
      SyslogAppender leaks file descriptors. by Radhakrishna Kalyan Nimmagadda.
      Thanks to Fadi Mohsen for creating the Jira ticket.
</p>

nrkkalyan avatar Feb 26 '15 11:02 nrkkalyan

Hi, I would like to know why my commit has not yet pulled and merged to the head. Am I missing anything. Kindly let me know.

nrkkalyan avatar Sep 06 '15 09:09 nrkkalyan

@nrkkalyan, looks like there's a comment you haven't addressed.

@ceki, please review this PR.

tony19 avatar Sep 06 '15 10:09 tony19

Hi Please let me know if my release comment above is properly written by me.

nrkkalyan avatar Sep 10 '15 18:09 nrkkalyan

Hi

I would like to know when can I expect my changes merged to the head version.

Thanks in advance

nrkkalyan avatar Dec 03 '15 22:12 nrkkalyan

Is this PR merged? It is causing some serious issue of intermittent failure and UDP leak. Please respond. Thanks!!

Jay-JS avatar Sep 11 '18 06:09 Jay-JS

Hi @tony19 @ceki are there any issues with this PR? Why this one is not getting merged. It is causing some serious issues. do we have any plan to resolve this?

Jay-JS avatar Sep 11 '18 06:09 Jay-JS