select() : bad file descriptor in torrent_process_receive()

Bug #362823 reported by Steve Dodier-Lazaro
2
Affects Status Importance Assigned to Milestone
RezTorrent
Fix Released
High
RezTeam Developers

Bug Description

File torrents_manager.c
Function torrent_process_receive()
Receiving select() : bad file descriptor

Faulty function : update_peers_in_select. it seems some peers have an invalid yet positive socket, they probably disconnected without us to take notice of it.

Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :
Changed in reztorrent:
assignee: nobody → elentir-b
importance: Undecided → High
milestone: none → release
status: New → Triaged
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

Seems fixed. That was coming from connections being dropped but torrents not removed from the list.

Changed in reztorrent:
assignee: elentir-b → sidi
status: Triaged → Fix Committed
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

Happening again after the regression to previous code due to the memory corruption problem.

Changed in reztorrent:
assignee: sidi → rezteam
status: Fix Committed → Incomplete
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

Forgot a FD_CLR on bad sockets, or a FD_ZERO before regening the FD_SET

Changed in reztorrent:
status: Incomplete → Fix Committed
Changed in reztorrent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.