Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Issue 7508015: Set send buffer size for the raw socket used by chromoting (Closed)

Created:
9 years, 4 months ago by Alpha Left Google
Modified:
9 years, 4 months ago
Reviewers:
Sergey Ulanov, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Set send buffer size for the raw socket used by chromoting On Windows the send buffer size of UDP socket has a much smaller value than the PseudoTcp's send buffer size. This causes PseudoTcp to flood the UDP socket and results in a EWOULDBLOCK, however the code doesn't handle this properly but simply treat the packet as lost. This happens very often and causes Windows host to be very janky. BUG=91495 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95473

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M jingle/glue/channel_socket_adapter.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M remoting/protocol/jingle_stream_connector.cc View 1 chunk +8 lines, -0 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Alpha Left Google
9 years, 4 months ago (2011-08-03 10:43:52 UTC) #1
Sergey Ulanov
LGTM, but I don't think we need 256k buffer size for UDP send queue. http://codereview.chromium.org/7508015/diff/1/remoting/protocol/jingle_stream_connector.cc ...
9 years, 4 months ago (2011-08-03 19:12:08 UTC) #2
Wez
On 2011/08/03 19:12:08, sergeyu wrote: > LGTM, but I don't think we need 256k buffer ...
9 years, 4 months ago (2011-08-03 20:13:58 UTC) #3
Alpha Left Google
Theoretically the maximum size we're going to send is 256k since we set out PseudoTcp ...
9 years, 4 months ago (2011-08-04 13:43:08 UTC) #4
Sergey Ulanov
9 years, 4 months ago (2011-08-04 18:10:28 UTC) #5
On 2011/08/04 13:43:08, Alpha wrote:
> Theoretically the maximum size we're going to send is 256k since we set out
> PseudoTcp to be like so. The consequence of having UDP socket to return a
> EWOULDBLOCK is too great (it takes several seconds to recover) that I would
like
> to gurantee it is set large enough to not suffer from it at all.

Ok, then, but it feels like we should really investigate it further to find out
what's the right buffer size. Can you please add TODO for that.

Powered by Google App Engine
This is Rietveld 408576698