Štěpán Roh

Alive But Sleepy

Thursday, July 17, 2008, 22:08

Unreliable System.nanoTime()

Java's System.nanoTime() is better than System.currentTimeMillis(), right? Wrong!

Continue reading…
Monday, March 3, 2008, 20:40

Java Mystery Of (Un)Closed Sockets

Windows has a limit on number of existing client network sockets. I recently ran into this when I started to close sockets which were previously left to be timed out. That was certainly a suprprise, because naturally one would thought that closed socket will be, well, closed much earlier than unclosed one.

Continue reading…