D
dp
I want to be able to send a HTTP-post to a server, not knowing if it's
online or not. This needs to be done frequently, and in multiple
concurrent threads (centralized message logging).
I've tried URLConnection and Sockets, both of them lock the thread
while tying to connect to the server. I havn't found any timeout
settings for the connect, only for established connections. I'd like to
keep resouces used to a minium and avoid creating additional time-out
threads.
with a simple NIO socket example of a HTTP POST command with a connect
timeout?
online or not. This needs to be done frequently, and in multiple
concurrent threads (centralized message logging).
I've tried URLConnection and Sockets, both of them lock the thread
while tying to connect to the server. I havn't found any timeout
settings for the connect, only for established connections. I'd like to
keep resouces used to a minium and avoid creating additional time-out
threads.
found much info on this subject though. Could someone please help meFrom what I've read, NIO sockets seems to be the way to go. I haven't
with a simple NIO socket example of a HTTP POST command with a connect
timeout?