Closed
Bug 274218
Opened 20 years ago
Closed 18 years ago
nsIStreamListener documentation unclear about offset parameter
Categories
(Core :: Networking, enhancement)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla1.8.1
People
(Reporter: Biesinger, Assigned: Biesinger)
References
()
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
1.50 KB,
patch
|
Details | Diff | Splinter Review |
58 * @param aOffset current stream position this does not seem to make it clear what the value should be when a channel impl creates a new stream for each ODA call - for each such ODA, the offset in the stream would be 0 (since it's a newly created stream). But data has been transferred already - isn't this argument supposed to be, basically, "amount of bytes transferred already"?
Comment 1•20 years ago
|
||
> isn't this argument supposed to be, basically, "amount of bytes transferred
> already"
yes, that is how i have always interpreted the parameter.
Updated•18 years ago
|
Assignee: darin → nobody
QA Contact: benc → networking
Assignee | ||
Comment 2•18 years ago
|
||
comment-change only, so it's safe for the branch
Assignee: nobody → cbiesinger
Status: NEW → ASSIGNED
Attachment #229908 -
Flags: superreview?(darin)
Attachment #229908 -
Flags: review?(darin)
Attachment #229908 -
Flags: approval1.8.1?
Assignee | ||
Updated•18 years ago
|
Target Milestone: --- → mozilla1.8.1
Comment 3•18 years ago
|
||
Comment on attachment 229908 [details] [diff] [review] patch Please add a comment about what happens to offset for large files. I think the answer is that when it hits PR_UINT32_MAX, it stays there and does not roll-over.
Attachment #229908 -
Flags: superreview?(darin)
Attachment #229908 -
Flags: superreview+
Attachment #229908 -
Flags: review?(darin)
Attachment #229908 -
Flags: review+
Attachment #229908 -
Flags: approval1.8.1?
Attachment #229908 -
Flags: approval1.8.1+
Assignee | ||
Comment 4•18 years ago
|
||
yep, that's the behaviour of the input stream pump, at least on trunk.
Attachment #229908 -
Attachment is obsolete: true
Assignee | ||
Comment 5•18 years ago
|
||
HEAD: Checking in nsIStreamListener.idl; /cvsroot/mozilla/netwerk/base/public/nsIStreamListener.idl,v <-- nsIStreamListener.idl new revision: 1.21; previous revision: 1.20 done MOZILLA_1_8_BRANCH: Checking in nsIStreamListener.idl; /cvsroot/mozilla/netwerk/base/public/nsIStreamListener.idl,v <-- nsIStreamListener.idl new revision: 1.20.8.1; previous revision: 1.20 done
You need to log in
before you can comment on or make changes to this bug.
Description
•