Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Socket error #10055 (WSAENOBUFS)


  • Please log in to reply
20 replies to this topic

#21 KiwiDev

KiwiDev

    Advanced Member

  • Members
  • PipPipPip
  • 100 posts
  • LocationNew Zealand

Posted 24 December 2014 - 10:26 AM

Hi all,

 

I had a similar problem with short messages taking a while to get sent for HTTP requests done using sockets rather than the baked in System.http functionality.....

 

After some digging I think  the TCP socket was buffering (Nagle algorithm send coalescing) the send.

 

http://msdn.microsof....socket.nodelay

 

See http://blog.devmobil...uest-reduction/for a bit more detail.

 

EndPoint Destination = new IPEndPoint(address.AddressList[0], (int)this._Port);

// Connects to the socket

this._Sock.Connect(Destination);
this._Sock.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, true);

 

I did a quick global search thru the M2Mqtt library an couldn't see the Nagle functionality being turned off...

 

It might be worth trying this? 

 

Bryn

blog.devmobile.co.nz






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.