Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Why failing sendto/send transmit complete datagram/packet anyway??

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2007, 07:13 PM
Default Why failing sendto/send transmit complete datagram/packet anyway??



I ran some tests with UDP sendto() and TCP send() under heavy
traffic.
Even though the tests were on Windows Vista using Winsock 2.2,
only the standard BSD socket functions were used.
All sockets were non-blocking.

I noticed that when sendto/send fail with error code WSAENOBUFS
(insufficient buffer space or full queue), or WSAEWOULDBLOCK
(non-blocking socket operation could not be completed immediately)
then the corresponding datagram or packet was transmitted anyway
and the remote client received it.

Is it expected?

I assumed sendto/send failing with return value < 0 and any
error code do not send any data.



maruk2@hotmail.com
Reply With Quote
Reply

Tags
complete, datagram or packet, failing, sendto or send, transmit

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.