[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Half Open Connections


  • Subject: [Openvpn-users] Half Open Connections
  • From: Ryan White <ryanw@xxxxxxx>
  • Date: Thu, 9 Nov 2006 08:43:02 -0800

> To OpenVpn-Users:
> I'm writing a web application using AJAX to connect to the  
> Management Interface.  This connects every second.  Somehow I'm  
> exiting from the socket incorrectly and its leaving with very many  
> Half-Open socket connections.
>
> This is the code:
> // $socket is the socket connected to the management interface
> // Quit from socket
> $command="quit\n";
> socket_write($socket,$command,strlen($command));
>
> // Shutdown the socket
> socket_shutdown($socket,2);
>
> // Close Socket
> socket_close($socket);
>
> Not quite sure what is going on.  Does anyone see anything wrong  
> with how I close this connection, either from the server or client  
> end?
>
> Thanks,
> Ryan

______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users