Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251+ // https://github.com/apple-oss-distributions/xnu/blob/e3723e1f17661b24996789d8afc084c0c3303b26/bsd/kern/uipc_syscalls.c#L663-L691252+#else253+ KJ_LOG(ERROR, "accept() returned zero-size address?");254+#endif255+ return acceptImpl(authenticated);256+ }257+258if (!filter.shouldAllow(reinterpret_cast<struct sockaddr*>(&addr), addrlen)) {259// Ignore disallowed address.260return acceptImpl(authenticated);261@@ -1357,8 +1369,10 @@ public:262ownFd.get(), IPPROTO_TCP, TCP_NODELAY, (char*)&one, sizeof(one))) {263case EOPNOTSUPP:264case ENOPROTOOPT: // (returned for AF_UNIX in cygwin)265-#if __FreeBSD__266- case EINVAL: // (returned for AF_UNIX in FreeBSD)267+#if __APPLE__ || __FreeBSD__268+ case EINVAL:269+ // On FreeBSD, EINVAL is returned for AF_UNIX sockets.270+ // On macOS, EINVAL may be returned for sockets that are already dead (due to a race with RST).271#endif272break;273default:
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.