H
Hal Vaughan
After working on a secure port forwarder, I've realized I could use the same
code for a secure server intended only for my programs, on different
networks, to talk to each other.
I'm thinking of writing a mini-server to go on my web site, which is hosted
by a third party that will take requests from my programs, on different
computers, and return the needed information. I see advantages of this
because I can use keystores to authenticate not only the server for the
client programs, but the server can authenticate and verify who it is
talking to. I also figure (and am willing to be corrected) that Java is
rather secure, and it isn't hard to use error trapping to force the program
to exit (and restart, with a good batch file) if something goes wrong.
The problem is, for different reasons, I need to stick with Java 1.4.2,
which means I cannot use a Selector. As it is, once I use
SSLSocket.accept() to create a socket, I was going to start the handshake
so I'd know quickly if the connection was authorized or not. Connections
would be dropped as soon as they're found to be unauthorized or as soon as
communications are complete. I know one of the big reasons for creating
the Selector object was for scalability. So, on a third party server which
is probably a vm (on Linux), just how many simultaneous connections could
Java easily handle without using a Selector and needing to continuously
check for incoming data on the existing sockets?
Thanks for any help/info/links.
Hal
code for a secure server intended only for my programs, on different
networks, to talk to each other.
I'm thinking of writing a mini-server to go on my web site, which is hosted
by a third party that will take requests from my programs, on different
computers, and return the needed information. I see advantages of this
because I can use keystores to authenticate not only the server for the
client programs, but the server can authenticate and verify who it is
talking to. I also figure (and am willing to be corrected) that Java is
rather secure, and it isn't hard to use error trapping to force the program
to exit (and restart, with a good batch file) if something goes wrong.
The problem is, for different reasons, I need to stick with Java 1.4.2,
which means I cannot use a Selector. As it is, once I use
SSLSocket.accept() to create a socket, I was going to start the handshake
so I'd know quickly if the connection was authorized or not. Connections
would be dropped as soon as they're found to be unauthorized or as soon as
communications are complete. I know one of the big reasons for creating
the Selector object was for scalability. So, on a third party server which
is probably a vm (on Linux), just how many simultaneous connections could
Java easily handle without using a Selector and needing to continuously
check for incoming data on the existing sockets?
Thanks for any help/info/links.
Hal