# function send() blocking

**URL:** <https://forums.digi.com/t/function-send-blocking/5768>\
**Category:** NET+OS\
**Created:** [March 2, 2004, 5:43pm UTC](https://forums.digi.com/t/function-send-blocking/5768 "2004-03-02T17:43:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trois\_1](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@trois\_1](https://forums.digi.com/u/trois_1)\
**Post date:** [March 2, 2004, 5:43pm UTC](https://forums.digi.com/t/function-send-blocking/5768/1 "2004-03-02T17:43:13Z")

</div>

I have a TCP\_socket on NETOS6. My probleme is that the function send() is blocking when the connection is out. How can I do for a send() that just copy the buffer into the buffer out. Or is it possible that the function send() has a timeout about 400ms. Perhaps, it is possible with setsocketoption, or select() . I have try with select(), but no working. I thing when the buffer out is full , send() is blocking. options of my socket : socket( AF\_INET , SOCK\_STREAM , 0 ); SOL\_SOCKET , SO\_SNDBUF : 65535 SOL\_SOCKET , SO\_RCVBUF : 65535 IPPROTO\_TCP , TCP\_ACKDELAYTIME : 30 IPPROTO\_IP , IP\_TTL : 3 IPPROTO\_TCP , TCP\_REX\_MIN : 200 IPPROTO\_TCP , TCP\_REX\_INIT : 800 IPPROTO\_TCP , TCP\_REX\_MAX : 1000
