NullPointerException again?
@cat_edelveis tracks down the bug behind a crash and shows why adding a null check can leave you with more debugging to do.
Watch the new video: youtu.be/dm_Lgy90ixY
A connect timeout alone is not enough to bound an HTTP request. Java's HttpClient has a client-level timeout for establishing new connections, and HttpRequest can set a per-request timeout for receiving the response.
Set connectTimeout() on the client and timeout() on the
Switzerland, catch @dchuyko at your local JUG 🇨🇭
Oct 22 · St. Gallen
Know what goes into your Java containers with SBOMs.
Oct 26 · Basel
Explore Java performance gains without changing your code.
Details: jug.ch
A package you’ve trusted for years can still ship a compromised release.
@cat_edelveis explores zero trust for open source in @JAVAPROmagazin, including what a clean CVE scan can miss.
Read her article on p. 58 of the free PDF:
Several callers waiting on the same CompletableFuture? orTimeout() times out the future you call it on.
Use copy() to give one caller its own timeout without timing out the shared future. Java 9+. #Java