The Samba-Bugzilla – Bug 9716
tsocket: writev can return -1, with an errno==ENOMEM on Solaris/illumos.
Last modified: 2016-07-13 13:09:23 UTC
I looked at the illumos kernel sources, and I proved that this happened using dtrace.
It is a strange case, but the actual strange errno will only come from the network stack as far as I can tell.
For solaris users pushing high amounts of SMB2 traffic. This is a fairly important fix, the way the error manifests can be VERY hard to track down, and will show up as samba just being unreliable. (Randomly closing connections.)
Created attachment 8635 [details]
patch for 4.0
Created attachment 8636 [details]
patch for 3.6
This is fixed in current releases