Bug 9716 - tsocket: writev can return -1, with an errno==ENOMEM on Solaris/illumos.
Summary: tsocket: writev can return -1, with an errno==ENOMEM on Solaris/illumos.
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.0.3
Hardware: All Solaris
: P5 major (vote)
Target Milestone: ---
Assignee: Ira Cooper
QA Contact: Samba QA Contact
Depends on:
Reported: 2013-03-13 21:12 UTC by Ira Cooper
Modified: 2016-07-13 13:09 UTC (History)
2 users (show)

See Also:

patch for 4.0 (863 bytes, patch)
2013-03-13 21:27 UTC, Ira Cooper
ira: review? (jra)
ira: review? (metze)
vl: review+
patch for 3.6 (863 bytes, patch)
2013-03-13 21:31 UTC, Ira Cooper
ira: review? (jra)
vl: review+
ira: review? (metze)

Note You need to log in before you can comment on or make changes to this bug.
Description Ira Cooper 2013-03-13 21:12:13 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.)
Comment 1 Ira Cooper 2013-03-13 21:27:16 UTC
Created attachment 8635 [details]
patch for 4.0
Comment 2 Ira Cooper 2013-03-13 21:31:01 UTC
Created attachment 8636 [details]
patch for 3.6
Comment 3 Stefan Metzmacher 2016-07-13 13:09:23 UTC
This is fixed in current releases