简体   繁体   中英

Can socket send / recv return errno 27 (EFBIG) on Solaris?

Can socket send / recv set errno 27 (EFBIG) on Solaris? Under which condition this happens?

man recv doesn't document EFBIG meaning that if you see it, you have encountered a bug in the OS. Contact the Sun Oracle Solaris support.

If you are on the OpenSolaris, the dumb search reveals that sockets themselves do not return EFBIG (no matches under sys/common/inet/ ; compare eg with search for ENOBUFS ). To me that tells that you might:

  • have a parameter exceeding some safety limit. eg classical -1u bytes which would be caught even before reaching the sockets API. (unlikely for that other error codes are used.)
  • use send/recv on a wrong socket/file descriptor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM