Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
63e4091d
Commit
63e4091d
authored
10 years ago
by
Jorge Canizales
Browse files
Options
Downloads
Patches
Plain Diff
Add warning about the perils of buffering without bounds
parent
421f6c94
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/objective-c/RxLibrary/GRXBufferedPipe.h
+6
-0
6 additions, 0 deletions
src/objective-c/RxLibrary/GRXBufferedPipe.h
with
6 additions
and
0 deletions
src/objective-c/RxLibrary/GRXBufferedPipe.h
+
6
−
0
View file @
63e4091d
...
@@ -45,6 +45,12 @@
...
@@ -45,6 +45,12 @@
// GRXWriterStateStarted.
// GRXWriterStateStarted.
// If it receives an error (via -didFinishWithError:), it will drop any buffered values and
// If it receives an error (via -didFinishWithError:), it will drop any buffered values and
// propagate the error immediately.
// propagate the error immediately.
//
// Beware that a pipe of this type can't prevent receiving more values when it is paused (for
// example if used to write data to a congested network connection). Because in such situations the
// pipe will keep buffering all data written to it, your application could run out of memory and
// crash. If you want to react to flow control signals to prevent that, instead of using this class
// you can implement an object that conforms to GRXWriter.
@interface
GRXBufferedPipe
:
NSObject
<
GRXWriteable
,
GRXWriter
>
@interface
GRXBufferedPipe
:
NSObject
<
GRXWriteable
,
GRXWriter
>
// Convenience constructor.
// Convenience constructor.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment