Skip to content
  • Rob Swindell's avatar
    Fix bug with Socket.getoption() of byte-sized options · 30d40911
    Rob Swindell authored
    Only observed on Windows, the option value variable (val) was uninitialized so querying byte-sized options using WinSock getsockopt() would leave the MSB of the value as undefined (garbage), resulting in sockinfo.js output like this:
    KEEPALIVE = -858993663
    instead of this:
    KEEPALIVE = 1
    30d40911