[SERVER-28710] vectorized send() should handle EWOULDBLOCK Created: 10/Apr/17  Updated: 06/Dec/17  Resolved: 26/Apr/17

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 3.2.14, 3.4.5, 3.5.7

Type: Bug Priority: Major - P3
Reporter: Mira Carey Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-26215 Initial sync fails due to false time ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4, v3.2
Sprint: Platforms 2017-05-08
Participants:

 Description   

The vectorized write path in /util/net/sock.cpp only handles EAGAIN, unlike the non-vectorized path (which also handles EWOULDBLOCK). Both can receive it (from the SO_SNDTIMEO sockopt).

Failing to handle it means that socket timeouts will be sent up to the rest of the system as SocketException::SEND_ERROR, rather than SEND_TIMEOUT.



 Comments   
Comment by Githook User [ 01/May/17 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-28710 Unify error handling between send and sendmsg paths

(cherry picked from commit 6ce4f12e208e3f02a6de1ba79158b2d181e60bd8)
Branch: v3.2
https://github.com/mongodb/mongo/commit/1a24cc13e5068cc6e3e536b825b4821dedcb851d

Comment by Githook User [ 27/Apr/17 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-28710 Unify error handling between send and sendmsg paths

(cherry picked from commit 6ce4f12e208e3f02a6de1ba79158b2d181e60bd8)
Branch: v3.4
https://github.com/mongodb/mongo/commit/60669a7596b2c8dd96697840e0dfb374ea6c5193

Comment by Githook User [ 26/Apr/17 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-28710 Unify error handling between send and sendmsg paths
Branch: master
https://github.com/mongodb/mongo/commit/6ce4f12e208e3f02a6de1ba79158b2d181e60bd8

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