This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes SocketException is not throwing in Windows Vista while network lost. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "SocketException is not throwing in Windows Vista while network lost." Watch "SocketException is not throwing in Windows Vista while network lost." New topic
Author

SocketException is not throwing in Windows Vista while network lost.

ShaikSs Azmathulla
Greenhorn

Joined: Oct 14, 2011
Posts: 1
Hello All,

We have a Server and client programs which reads file from server and writes to client.


While reading the file from server if network goes down (we can try by removing network cable)
then in Windows XP machine it is throwing SocketException but in Windows Vista it is not throwing any exception.

We have observed this strange behavior in Windiows Vista.

Is there any issues with Vista OS for Sokcet programming.



Server.java - It reads the data from file which is placed server and writes to client
Client.java - It take the data correcspoding server socket and print the data on console.


Please find the attached programs.


Thanks in Advance.


------------------------------------------------------------
Server.java


-----------------------------------------------------------------------------

Client.java


---------------------------------------------------------------------------------
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: SocketException is not throwing in Windows Vista while network lost.
 
Similar Threads
making Thread of methods
Server sending data to Clients Randomly
Data from server is not sent to client
client / server (communication problem...)
Reading a binary file from a client to server