A network failure that wasn't quite one
I use a Mac mini for development, 3D work, and video projects. Several working directories are shared over the macOS built-in SMB service and mapped as network drives in Windows. Connecting and browsing looked fine, but file access would eventually fail.
“The specified network name is no longer available.”
“Q:\ is not accessible. Access is denied.”
Over repeated incidents, a pattern emerged: copying files in either direction was much more likely to trigger a disconnect than simply browsing folders.
The server is Apple's native /usr/sbin/smbd, not the Samba daemon commonly configured through smb.conf on Linux. That difference matters when searching for fixes.
Environment and initial exclusions
| Component | Observed setup |
|---|---|
| Server | Mac mini · macOS 27.0 (Build 26A425) · Apple smbd |
| Client | Windows, using a mapped SMB network drive |
| Network | 1 Gbps Ethernet; Mac Wi-Fi off; MTU 1500 |
| Shares | AI, Downloads, BlenderShare |
| Dialect | SMB 3.0.2 negotiated by Windows |
Even while the mapped drive was unavailable, TCP port 445 was reachable. The Mac could ping Windows, SSH stayed up, system sleep was disabled, and Ethernet interface counters reported no send/receive errors.
Test-NetConnection 192.168.0.37 -Port 445
# TcpTestSucceeded : True
A working TCP connection to port 445 is not proof that SMB authentication, sessions, tree connections, or file operations are healthy. It only rules out the simplest “port unreachable” explanation.
Two rounds of evidence
The Windows-to-Mac port-445 connection was ESTABLISHED; the Mac smbd PID was 23733.
Windows reported access denied; the Mac was still listening on 445, but no established SMB connection remained.
Windows logged 30804, 30805 and 30806. The Mac smbd process had not crashed at that timestamp.
A burst of 0xc00000e2 file-lease failures appeared around file activity.
Windows logged another disconnect, including 30807, followed by session recovery and IPC$ connection events.
Different smbd PIDs appeared over time, but macOS can start and stop the service on demand. PID changes and service inactive messages alone do not establish a crash.
What the Windows events actually say
| Event ID | Meaning |
|---|---|
| 30804 | Underlying TCPIP transport disconnected |
| 30805 | SMB session to the server was lost |
| 30807 | Tree/share connection lost (IPC$ in this case) |
| 30806 | SMB session was re-established |
| 30833 | Initial IPC$ tree connection was established |
Get-WinEvent -LogName 'Microsoft-Windows-SMBClient/Connectivity' -MaxEvents 20 |
Select-Object TimeCreated,Id,Message |
Format-List
IPC$ is a special administrative/interprocess-communication share, not the working AI file share. A session recovery event does not guarantee that the original file handles, tree connections, or interrupted copy have recovered.
TCP resets and file-lease messages on the Mac
The macOS kernel logged TCP connections that reached ESTABLISHED but ended within a few dozen milliseconds:
tcp_connection_summary
Duration: 0.024 sec
so_error: 54
RST in/out: 1/0
The Mac received a TCP reset and did not send one in that record. The peer address was redacted in the log, however, and no complete packet capture was available. This does not prove who initiated the original failure.
There was also recurring smbd lease activity:
request_a_lease: F_SETLEASE F_WRLCK ... error: 45
request_a_new_lease:
smbd_service lease request returned status 0xc00000e2
0xc00000e2 maps to STATUS_OPLOCK_NOT_GRANTED: the requested opportunistic lock/lease was not granted. Approximately 6,364 such messages appeared in one 72-hour log window.
Lease requests can be denied during normal cache coordination. Their timing made them worth investigating, but the log alone does not establish them as the cause of the disconnects.
The configuration that changed the investigation
Checking the negotiated Windows connection parameters revealed the overlooked variable: the AI share was using SMB 3.0.2 with encryption enabled.
Get-SmbConnection |
Format-Table ServerName,ShareName,Dialect,Signed,Encrypted
ServerName ShareName Dialect Signed Encrypted
rydardemac-mini.lan AI 3.0.2 False True
On the Mac, sharing -l showed sealed: 1 for the same share. Downloads and BlenderShare also required encryption.
The useful question was no longer “does SMB sometimes disconnect?” but “is the SMB3 encrypted data path the trigger under sustained file-transfer load?”
A one-line, share-level workaround
macOS provides an explicit encryption option in its sharing command. For the existing AI share:
# Disable mandatory SMB3 encryption on this share
sudo sharing -e AI -E 0
# Confirm that the share now reports sealed: 0
sharing -l
# Restore the previous requirement, if needed
sudo sharing -e AI -E 1
This keeps the directory and the SMB protocol version intact. After reconnecting the Windows session, Get-SmbConnection reveals whether the actual connection is no longer encrypted.
After the mandatory encryption setting was disabled, the repeated copy-triggered disconnects improved noticeably. This is the strongest practical association in the investigation, but it is a workaround—not proof of a specific bug inside Apple's smbd implementation.
Why might encryption expose the problem?
SMB encryption operates on file-transfer data, not just at login. SMB 3.0.x uses AES-128-CCM, while SMB 3.1.1 commonly defaults to AES-128-GCM. GCM is generally faster in modern implementations, but AES-CCM is a mature, standardized algorithm; using it should not cause spontaneous disconnects.
One plausible explanation is an implementation edge case involving the encrypted data path, buffers, or request completion timing between Windows and Apple's SMB service. Another is that encryption overhead exposes an existing timeout, concurrency, or lease-handling problem.
These are hypotheses. Without correlated packet captures and the server's internal implementation details, it would be inaccurate to blame the CCM algorithm, a specific CPU instruction, or a confirmed Apple defect.
Stability comes with a security trade-off
The original connection reported Signed=False, Encrypted=True. SMB3 authenticated encryption includes integrity protection, so a separate signing indicator of False does not automatically mean the encrypted connection lacked integrity.
After encryption is disabled, if the connection becomes Signed=False, Encrypted=False, the SMB session has neither SMB-layer confidentiality nor SMB message signing. Someone with sufficient access to the local network could potentially observe file contents or interfere with unauthenticated traffic.
- Use unencrypted SMB only as a limited workaround on a trusted, managed LAN.
- Enable SMB signing where compatible; signing protects integrity, not confidentiality.
- Do not enable SMB1 or expose TCP 445 directly to the Internet.
- Use SFTP for sensitive transfers, or a dedicated NAS for long-term file sharing.
What actually narrowed the problem
The breakthrough was not any single log line. It was treating the problem in layers: Ping and port 445 checked basic reachability; Windows event IDs separated transport, session, and share failures; Mac logs provided timing around file activity; and finally encryption was isolated as a single configurable variable.
The defensible conclusion is narrow but useful: in this macOS 27.0 / Windows SMB 3.0.2 setup, mandatory SMB share encryption was strongly associated with copy-time disconnects, and disabling that requirement substantially improved usability.
The longer-term path is to update macOS, keep SMB2/3, preserve signing where possible, and use SFTP or a purpose-built file server when confidentiality and reliable transfers matter more than mapped-drive convenience.
Sources & further reading
- Apple — Share Mac files with Windows users
- macOS sharing(8) — SMB share encryption option
- Microsoft — SMB feature descriptions
- Microsoft — SMB signing overview
- Super User — Intermittent SMB failure from Windows to macOS
Field notes are based on actual troubleshooting between November 10 and 23, 2026. Local IPs are retained only as illustrative private-network addresses; credentials and private files are not included. No Apple-confirmed product defect is asserted.