- May 2023
-
fiatjaf.com fiatjaf.com
-
IPFS can open up to 1000 connections by default and suck up all your bandwidth – and that’s just for exchanging keys with other DHT peers.
imho, the main problem with IPFS is that it does DHT over TCP, which is crazy-inefficient, compared to bittorrent, which does DHT over UDP, which "just works"
one reason for DHT over TCP is to make this work in a web browser, which does not support UDP. so instead of teaching web browsers to talk UDP, IPFS took the simple route of "lets take bittorrent and run DHT over TCP"
IPFS is obsolete, many goals of IPFS can be achieved with bittorrent v2
generally, treating web browsers as the main target platform (and thus inheriting their limitations) is a bad idea, equally stupid as the "lets run everything in javascript/WASM" idea
Tags
Annotators
URL
-
-
developers.cloudflare.com developers.cloudflare.com
-
blog.cloudflare.com blog.cloudflare.com
-
🥳
```js import { connect } from 'cloudflare:sockets';
export default { async fetch(req: Request) { const gopherAddr = "gopher.floodgap.com:70"; const url = new URL(req.url);
try { const socket = connect(gopherAddr); const writer = socket.writable.getWriter() const encoder = new TextEncoder(); const encoded = encoder.encode(url.pathname + "\r\n"); await writer.write(encoded); return new Response(socket.readable, { headers: { "Content-Type": "text/plain" } }); } catch (error) { return new Response("Socket connection failed: " + error, { status: 500 }); }
} };
ts connect(address: SocketAddress | string, options?: SocketOptions): Socket
declare interface Socket { get readable(): ReadableStream; get writable(): WritableStream; get closed(): Promise<void>; close(): Promise<void>; startTls(): Socket; }
declare interface SocketOptions { secureTransport?: string; allowHalfOpen: boolean; }
declare interface SocketAddress { hostname: string; port: number; } ```
-
-
chromestatus.com chromestatus.com
Tags
Annotators
URL
-
- Apr 2023
-
github.com github.com
-
blog.cloudflare.com blog.cloudflare.com
Tags
Annotators
URL
-
- Mar 2023
-
www.bortzmeyer.org www.bortzmeyer.org
Tags
Annotators
URL
-
-
datatracker.ietf.org datatracker.ietf.org
Tags
Annotators
URL
-
- Dec 2022
-
www.zhihu.com www.zhihu.com
-
QQ 为什么以 UDP 协议为主,以 TCP 协议为辅?
Tags
Annotators
URL
-
- Jun 2022
-
wicg.github.io wicg.github.io
Tags
Annotators
URL
-
-
www.w3.org www.w3.org
Tags
Annotators
URL
-
-
ably.com ably.com
-
-
-
-
www.chromium.org www.chromium.org
Tags
Annotators
URL
-
- Jun 2021
-
-
UDP
-
- Nov 2018
-
www.diva-portal.org www.diva-portal.org
-
overview of UDP , TCP and other protocols
-
- Sep 2015
-
github.com github.com
-
-
datatracker.ietf.org datatracker.ietf.org
Tags
Annotators
URL
-
-
github.com github.com
Tags
Annotators
URL
-
-
udt.sourceforge.net udt.sourceforge.net
-