[SERVER-26560] Do not make throwing asio library calls from within async callbacks Created: 10/Oct/16  Updated: 15/Apr/17  Resolved: 24/Oct/16

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 3.4.0-rc0
Fix Version/s: 3.2.10, 3.4.0-rc1

Type: Bug Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: platforms-hocr
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.2
Sprint: Platforms 2016-10-31
Participants:
Linked BF Score: 0

 Description   

The following asio library calls may throw, and we should not call them from within NetworkInterfaceASIO. Many of these methods have non-throwing variants:

asio::io_service::run()
asio::system_timer constructor
asio::system_timer::cancel()
asio::system_timer::expires_at(time point)
asio::system_timer::expires_after(duration)
asio::system_timer::wait()

This list may not be exhaustive.



 Comments   
Comment by Githook User [ 24/Oct/16 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: SERVER-26560 Properly handle or avoid making throwing calls into ASIO within NetworkInterfaceASIO
Branch: v3.2
https://github.com/mongodb/mongo/commit/35f394330e4ddd0e19db9e2d9ee096d41a6dcd56

Comment by Githook User [ 18/Oct/16 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: SERVER-26560 Properly handle or avoid making throwing calls into ASIO within NetworkInterfaceASIO
Branch: master
https://github.com/mongodb/mongo/commit/ac985ba419c74f20e287b0aff503cfed5d33e263

Generated at Thu Feb 08 04:12:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.