OpenVZ Forum


Home » General » Support » UDP socket is never closed
UDP socket is never closed [message #35846] Mon, 27 April 2009 14:17 Go to next message
Atosboy is currently offline  Atosboy
Messages: 15
Registered: April 2009
Junior Member
Hi,

We launch our application in OpenVZ environnement and we are front of socket closing problem :
- In non-virtualized environnement, our application opens UDP sockets at start up and closes them at shutdown; the sockets really close and our application can restart without any problem.
- In virtualized environnement(VPS), our application starts very well(UDP socket opens) but when it's stopped, only a part of UDP sockets are closed; in consequence, we cannot restart a second time our application in the VPS(because sockets are alreayd bound!).

The problem may not come from our application because it works well in standard environnement. So, we probably have set a bad configuration for OpenVZ.Is someone encountered this problem?

Below are some additional information:
*Host:
- OpenSUSE 11.1, kernel: 2.6.27 64 Bits
- OpenVZ Kernel 2.6.27 64 bits (kernel-ovz-default-2.6.27.11-aivazovsky.1.43.1.x86_64.rpm, kernel-ovz-default-base-2.6.27.11-aivazovsky.1.43.1.x86_64.r pm, kernel-ovz-default-extra-2.6.27.11-aivazovsky.1.43.1.x86_64. rpm)
*VPS:
- OpenSUSE 11.0 32 Bits (opensuse community template cache)
*VPS configuration:
- or ve-unlimited.conf-sample

Thank you in advance for your help,

Pat
Re: UDP socket is never closed [message #35851 is a reply to message #35846] Tue, 28 April 2009 06:24 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

are you able to localize the problem by creating the simple testcase?
Anyway, it worth filing a bug to not to forget about this issue.
http://bugzilla.openvz.org/
Re: UDP socket is never closed [message #35886 is a reply to message #35851] Wed, 29 April 2009 09:42 Go to previous messageGo to next message
Atosboy is currently offline  Atosboy
Messages: 15
Registered: April 2009
Junior Member
Hi,

We have reproduced the problem in a more simple contexte. We have created 2 programs :
- the first one opens a UDP socket in received mode :
- the second one sends an UDP frame to the previous program.

The following tests have been passed in the VPS :
1 - Starting and stopping the RECEIVER program => the socket is closed properly
2 - Starting the RECEIVER program and then send an UDP frame to it => the RECEIVER program becomes a zombie process and the received UDP socket is never closed even if the zombie process is killed. We use the netstat command to see socket status and the sending frame has never been received.....
3 - When we force the use of IPv4 socket, the test (2) works fine! May the probleme come from IPv6 support in OpenVZ?




Re: UDP socket is never closed [message #35887 is a reply to message #35886] Wed, 29 April 2009 09:57 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Please, file a bug. Thank you very much.
Re: UDP socket is never closed [message #35892 is a reply to message #35887] Wed, 29 April 2009 12:45 Go to previous message
Atosboy is currently offline  Atosboy
Messages: 15
Registered: April 2009
Junior Member
Hello,

Bug 1251 has been created. Thank for your help.

Pat
Previous Topic: debian 5 host system, 2.6.24 kernel
Next Topic: Which download?
Goto Forum:
  


Current Time: Sun Nov 10 05:25:53 GMT 2024

Total time taken to generate the page: 0.03390 seconds