- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Java 2 HP-UX java.net.PlainSocketImpl.socketCl...
Operating System - HP-UX
1753596
Members
6459
Online
108796
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2001 01:59 PM
тАО02-20-2001 01:59 PM
Java 2 HP-UX java.net.PlainSocketImpl.socketClose() hang
If there is a more suitable forum for this question could somone please direct me (I could not find one from the HP site).
Anyway the issue is on HP-UX (iirespective of jdk1.2.2 or 1.3) a call to java.net.Socket.close() [which results in the call to java.net.PlainSocketImpl.socketClose()] seems to hang (at least for a period). This certainly does not happen on any of the other Java platforms I have tested.
Has anyone seen anything similar and/or know of a workaround ?
thanks, David
Anyway the issue is on HP-UX (iirespective of jdk1.2.2 or 1.3) a call to java.net.Socket.close() [which results in the call to java.net.PlainSocketImpl.socketClose()] seems to hang (at least for a period). This certainly does not happen on any of the other Java platforms I have tested.
Has anyone seen anything similar and/or know of a workaround ?
thanks, David
- Tags:
- Java
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 03:52 AM
тАО02-21-2001 03:52 AM
Re: Java 2 HP-UX java.net.PlainSocketImpl.socketClose() hang
Here is some sample code (on other platfoms e.g. Solaris, win32, etc. the code works in the expected fashion .. on HP-UX the close() simply hangs forever).
import java.io.*;
import java.net.*;
public class scr1443
{
public static void main(String[] args)
{
new scr1443();
}
scr1443()
{
try
{
ServerSocket acceptor = new ServerSocket(7777);
new SocketCloser(acceptor).start();
while (true)
{
System.out.println("scr1443 .. accepting");
acceptor.accept();
}
} catch(Exception e) { e.printStackTrace(); }
}
class SocketCloser
extends Thread
{
ServerSocket acceptor;
SocketCloser(ServerSocket acceptor)
{
this.acceptor = acceptor;
}
public void run()
{
try { Thread.sleep(5000); } catch(InterruptedException e) { }
System.out.println("SocketCloser .. closing");
try { acceptor.close(); } catch(IOException e) { e.printStackTrace(); }
}
}
}
import java.io.*;
import java.net.*;
public class scr1443
{
public static void main(String[] args)
{
new scr1443();
}
scr1443()
{
try
{
ServerSocket acceptor = new ServerSocket(7777);
new SocketCloser(acceptor).start();
while (true)
{
System.out.println("scr1443 .. accepting");
acceptor.accept();
}
} catch(Exception e) { e.printStackTrace(); }
}
class SocketCloser
extends Thread
{
ServerSocket acceptor;
SocketCloser(ServerSocket acceptor)
{
this.acceptor = acceptor;
}
public void run()
{
try { Thread.sleep(5000); } catch(InterruptedException e) { }
System.out.println("SocketCloser .. closing");
try { acceptor.close(); } catch(IOException e) { e.printStackTrace(); }
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2001 06:42 AM
тАО02-23-2001 06:42 AM
Re: Java 2 HP-UX java.net.PlainSocketImpl.socketClose() hang
A problem fitting the description was logged as a defect on Feb 21st: JAGad51176. It is a duplicate of Javasoft bug 4096914.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2001 07:01 AM
тАО02-23-2001 07:01 AM
Re: Java 2 HP-UX java.net.PlainSocketImpl.socketClose() hang
According to Javasoft that was fixed in 1.2 FCS .. seems not in HP-UX 1.3. I did find the HP-UX JVM switch -XdoCloseWithReadPending which seems to workaround the problem, however this should be the default behavior - I shouldn't need a special switch.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP