> On Jan 13, 2017, at 2:47 AM, 郑圆杰 <[email protected]> wrote: > > Hi, > How to set SO_RCVTIMEO and SO_SNDTIMEO in smartos? > Is there any syscall or kernel tunable parameter for socket timeout?
These two do appear to be missing from the setsockopt(3SOCKET) man page, but they are available and you can set these via usual means with setsockopt() from within an application. Value argument is of type struct timeval, per the open group base specification. Nothing special or different here from other implementations. /dale ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
