WinSock recv() timeout: setsockopt()-set value + half a second?

后端 未结 2 1560
说谎
说谎 2021-01-22 14:11

I am writing a cross-platform library which, among other things, provides a socket interface, and while running my unit-test suite, I noticed something strange with regard to ti

2条回答
  •  死守一世寂寞
    2021-01-22 14:29

    I am having the same problem. Going to use

    patchedTimeout = max ( unpatchedTimepit - 500, 1 )

    Tested this with the unpatchedTimepit == 850

提交回复
热议问题