File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes URL / URLConnections and setting timeouts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "URL / URLConnections and setting timeouts" Watch "URL / URLConnections and setting timeouts" New topic
Author

URL / URLConnections and setting timeouts

Brian Martin
Greenhorn

Joined: Jan 10, 2002
Posts: 4
I am doing an application which requires a client
application to update itself by grabbing patches from
a remote webserver. I understand that when using sockets you can set the timeout period in which a read or write operation will stall and return control to the main application (non-blocking I/O).
My question is with respect to the URL class and whether or not it is a blocking or non-blocking connection and whether I can control timeouts with it?
thanks,
brian
 
 
subject: URL / URLConnections and setting timeouts
 
Threads others viewed
IO blocking and deadlock
How to catch EJB Transaction Timeout?
Behind the scene of Non-Blocking Technique of New I/O
Transforming a non blocking InputStream to a blocking one
What is non blocking in nio
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture