Menu

#151 recv() in socket-win32.cxx potential lockup

v1.1.x
closed
socket (5)
5
2013-01-02
2012-12-06
No

I found another minor issue in socket-win32.cxx in the read(...) function. If the socket closes while in the middle of the read function the ::recv(...) function returns 0 which may cause this loop to lockup. Rather, if ::recv(...) returns 0 the loop should terminate. See attached diff.

1 Attachments

Discussion

  • Václav Haisman

    Václav Haisman - 2013-01-01
    • assigned_to: Václav Zeman
     
  • Václav Haisman

    Václav Haisman - 2013-01-01

    That looks reasonable.

     
  • Václav Haisman

    Václav Haisman - 2013-01-02
    • labels: socket -->
    • status: open --> closed
     
  • Václav Haisman

    Václav Haisman - 2013-01-02

    Committed. I will push it later today.

     
  • Václav Haisman

    Václav Haisman - 2013-01-02
    • labels: --> socket
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.