3 ms·
In 99% of cases you don't have an api to do so.
by ex3ndr 6y ago
In 99% of cases you don't have an api to do so.
- gsich 6y agoThat's not the protocols fault. Besides, the OS usually does this, not your program. SO_KEEPALIVE is available on all relevant OS.
- Sami_Lehtinen 6y agoDefault keepalive time of two hours is also quite long, in some situations, where you would expect to get the notification just a bit faster.
- gsich 6y agoYes, default values are not sane for most connections.
- ex3ndr 6y agoGood luck access this from browser.
- gsich 6y agoBrowsers can do this.
- ex3ndr 6y agoAha, show me how i can access low level TCP stuff from JS. Browsers could do this, but they would not.
- gsich 6y agoThere is no need for that in JS. Browser (and any other program) can open connections with SO_KEEPALIVE.
- ex3ndr 6y agoI bet they could not. It will ruin whole internet with little gain since you still need application level pings anyway because issue could be in a broken server, not on TCP level.
- gsich 6y agohttps://chromium.googlesource.com/chromium/src/+/master/net/socket/tcp_socket_posix.cc https://chromium.googlesource.com/chromium/src/+/master/net/... I don't see how this breaks the whole Internet. Yes the server might not behave, but that's not a TCP problem.
- ex3ndr 6y agoi bet you missed the times when uTorrent turned on uTP and almost everywhere in the world ISP hardware just failed because of x100 traffic.