Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URL / URLConnections and setting timeouts  RSS feed

Brian Martin
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!