Note that there are some explanatory texts on larger screens.

plurals
  1. POStrange behavior using SO_SNDBUF on non-blocking TCP socket under windows
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COSO_SNDBUF is the maximum size of your send buffer ... trying to send 2MB at once with 1 kB buffer sounds a bit strange to me. You should probably either increase your send buffer to more than 2 MB or make sends smaller than 1kb. I think you mistakenly believe that setting SO_SNDBUF will "cut" your 2 MB in 1 kB segments and send them one by one, you need to do it yourself.
      singulars
    2. COMy impression is that it's supposed to limit the amount of data that can be queued at any time though, right. Basically I just need an indicator for how much data has actually been transmitted (as opposed to queued). The size of the buffer isn't really relevant to me, I just wanted to pick something small enough that I should see some granularity. Is there a better way to do this? HTTP doesn't have any sort of built-in mid-upload ACK afaik.
      singulars
    3. COYes it is that. If you can queue only 1kB, you can't send 2MB. Why it pretends it did send 2 MB is another problem. Keep in mind that whatever you do, TCP may very well combine or split your packets behind your back (see Nagle). You should split your sends by yourself, I guess that in your case something between 10 and 50 kB should do. To see the upload going on, use Wireshark or a proxy like Fiddler2.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload