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

Issue 10052007: Socket.available should never return a negative value. (Closed)

Created:
8 years, 8 months ago by Anders Johnsen
Modified:
8 years, 8 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Socket.available should never return a negative value. BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=6399

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move logic to dart, and report error to listeners. #

Patch Set 3 : Move to use OSError. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -3 lines) Patch
M runtime/bin/socket.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M runtime/bin/socket_impl.dart View 1 2 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
8 years, 8 months ago (2012-04-11 07:13:24 UTC) #1
Mads Ager (google)
https://chromiumcodereview.appspot.com/10052007/diff/1/runtime/bin/socket.cc File runtime/bin/socket.cc (right): https://chromiumcodereview.appspot.com/10052007/diff/1/runtime/bin/socket.cc#newcode43 runtime/bin/socket.cc:43: if (available < 0) available = 0; I think ...
8 years, 8 months ago (2012-04-11 07:20:23 UTC) #2
Anders Johnsen
https://chromiumcodereview.appspot.com/10052007/diff/1/runtime/bin/socket.cc File runtime/bin/socket.cc (right): https://chromiumcodereview.appspot.com/10052007/diff/1/runtime/bin/socket.cc#newcode43 runtime/bin/socket.cc:43: if (available < 0) available = 0; On 2012/04/11 ...
8 years, 8 months ago (2012-04-11 07:25:06 UTC) #3
Mads Ager (google)
8 years, 8 months ago (2012-04-11 08:41:12 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698