Commit graph

749 commits

Author SHA1 Message Date
drewhk
e0a062dd72 #21833: Fix race in BroadcastHub shutdown and new registrations 2016-11-18 10:23:43 +01:00
Hawstein
c373cef20f use SimpleLinearGraphStage to reduce the boilerplate code #21830 2016-11-18 10:13:15 +01:00
Olli Helenius
658b46e1cc Move (de)compression helpers to akka-stream module #21395 (#21409)
* Move (de)compression helpers to akka-stream #21395

* Move compression and decompression -related classes from
  akka-http-experimental to akka-stream
* Add Compression helper object with functions to create
  decompressing Flows
* Add a short cookbook entry

* =str move compression impl classes into their own directory (and change visibility)

* =str also expose gzip/deflate compression flows

* Fix formatting of plural ByteStrings in cookbook

* =str #21395 make compressor call Deflater.end in postStop to release resources

Also simplified the creation of the flow given a compressor.

* =str #21395 decompressors call Inflater.end in postStop to release resources

* =str #21395 smallish Scaladoc fixes
2016-11-17 22:42:37 +01:00
Hawstein
96a1d2a081 rewrite Buffer as a GraphStage #21528 2016-11-15 18:48:33 +01:00
drewhk
91b522e186 #21743: FlattenMerge should propagate outer attributes
Added Materializer.materialize() version that takes explicit initial attributes
2016-11-09 20:14:04 +01:00
drewhk
3f112648f0 Merge pull request #21685 from johanandren/wip-21377-tcpspec-failed-johanandren
Failing tcp spec fix
2016-11-07 15:36:16 +01:00
Andy Chung
a6a4d1ac7f Fixed error handling behaviour of Fold and Reduce 2016-11-04 10:38:35 +00:00
Alexander Gavrilov
20942b3126 Fix #21760 - Close Tls connection if Inbound closed before receiving peer's close_notify (#21786)
When application closes inboud using engine.closeInbound the engine can generate an alert message and put it into writer.outboundList. As a result the engine can have a new data packet in outbound and its isOutboundDone will be false. We have to ensure that it will be flushed to the network, that's why we have to update lastHandshakeStatus via the actual status of the engine. Otherwise the actor will transition to the flushingOutbound state but will never flush outbound, since engineNeedsWrap precondition will be false.

Generally speaking whenever we signal something to the SSLEngine, weshould also read getHandshakeStatus afterwards to understand what we need to do next. This was done everywhere but for this engine.closeInbound.
2016-11-04 11:00:13 +01:00
Patrik Nordwall
43f3999ca4 Merge pull request #21764 from Silv3rcircl3/patch-2
fix little typo
2016-11-01 16:28:06 +01:00
Cédric Chantepie
d60d68dfa2 Fix #21711 - foldAsync test using mapAsync 2016-10-31 18:22:07 +01:00
Marc Piechura
c09e10337b fix little typo 2016-10-30 20:54:09 +01:00
Johan Andrén
c7163c2d0c Increased timeout in long running test FramingSpec #21673 (#21686)
* Increased timeout in long running test FramingSpec #21673

* Increase default polling interval for futureValue in our tests
2016-10-19 12:20:34 +02:00
Falmarri
a28d2c579f Added a flag on takeWhile to allow it to include the final element, #21330 2016-10-18 12:02:59 +02:00
Mateus Dubiela Oliveira
c3abde60d5 Add scanAsync to Akka Streams, similar to scan but taking a Future (#21553)
* Add comprehensive tests
* Add documentation

* Damn comma after rebase

* Add documentation for foldAsync and scanAsync

* Rename aggreator and aggreating to current

* Remove out availability check

* Revert removing out and some refactors

* Formatting documentation

* Use after instead of Promise in test

* Use package reference to after and some refactoring
2016-10-17 16:43:11 +02:00
Johan Andrén
3c53ad5bc0 Failing tcp spec fix #21377 2016-10-17 13:17:37 +02:00
Vsevolod Belousov
0e60020c58 fold async emits zero given an empty stream #21562 2016-10-17 09:02:54 +02:00
Johan Andrén
ef7361c341 Minimal test fix (integer -> decimal) 2016-10-07 16:59:11 -05:00
Nafer Sanabria
94d7237d17 +str add zipWithIndex to FlowOps #21290 2016-09-21 08:41:56 +02:00
Patrik Nordwall
79d8ec87fc Delay should not pull when buffer is full with Backpressure strategy, #21334
Additionally
* nano time conversion and calculation fix
* refactoring of Delay.onPush
2016-09-13 16:10:49 +02:00
drewhk
ec50bd1441 Merge pull request #21447 from drewhk/wip-21446-harden-event-chasing-drewhk
#21446: Completion events must not be swallowed if chasing
2016-09-13 12:17:02 +02:00
Endre Sándor Varga
b2f0ca6750 #21446: Completion events must not be swallowed if chasing 2016-09-13 10:47:08 +02:00
Michał Płachta
b3bba1229f Make map stage final and refactor OneBoundedSetup to take a decider. (#21374)
* Remove new from Map constructions
2016-09-08 11:47:17 +02:00
Patrik Nordwall
a95b2d6746 fail fast in mapAsync for completed failed future, #21318 (#21322)
* fail fast in mapAsync for completed failed future, #21318

* the callback was not run until todo == parallelism or the sync
  event limit was reached, and that can be a problem if upstream
  stages are slow (noticed this for a blocking Kafka producer stage)

* skip callback for completed futures

* fix callback allocation
2016-08-30 19:30:08 +02:00
Johan Andrén
012919fdb3 OrElse stage for fallback when no elements emitted #21024 2016-08-30 13:35:59 +02:00
Patrik Nordwall
359a087674 Merge pull request #21166 from naferx/sink-graphstage
=str rewrite Sink internal impl as GraphStage
2016-08-30 10:37:30 +02:00
Johan Andrén
f760b98e8c Use in-memory filesystem for the file sink and source #20726 2016-08-29 16:33:33 +02:00
Cédric Chantepie
efc87af58a FoldAsync op for Flow #18603 2016-08-24 21:02:32 +02:00
drewhk
67d0d2a4e3 Merge pull request #21183 from drewhk/wip-20890-stream-hub-drewhk
Stream Hubs
2016-08-24 13:33:02 +02:00
Endre Sándor Varga
bc358f3188 20890 Added MergeHub and BroadcastHub 2016-08-24 11:43:24 +02:00
Endre Sándor Varga
00f8e4f87a #20887: Reduce GC pressure by compacting to reduce long lived garbage 2016-08-23 12:52:28 +02:00
drewhk
1278da9809 Merge pull request #21254 from drewhk/add-some-assertallstagesstopped-drewhk
Adding some assertAllStagesStopped
2016-08-23 11:33:39 +02:00
Johan Andrén
e480b7940e More generous binding timeouts in TcpSpec (#21246)
* More generous binding timeouts in TcpSpec #21014

* Use remainingOrDefault instead
2016-08-23 10:50:25 +02:00
Martynas Mickevičius
640f35ec64 =str #21199 Prevent pull/push from constructor by throwing IllegalStateException (#21252) 2016-08-23 10:44:09 +02:00
Endre Sándor Varga
119f2596ba Adding some assertAllStagesStopped 2016-08-23 10:28:20 +02:00
Endre Sándor Varga
5e830323f6 Updating to ScalaTest 3.0.0 and ScalaCheck 1.13.2 2016-08-22 11:13:49 +02:00
Johan Andrén
a81a61ba1f Balancer should not push to a closed out #20943 2016-08-18 15:44:27 +02:00
Mike Bryant
03923ca278 Correctly handle parsing of JSON strings containing single quotes #21147 2016-08-10 13:05:26 +02:00
Johan Andrén
e912f80390 Fixes for the JsonFraming #21150, #21154 and #21150 2016-08-10 12:59:52 +02:00
Nafer Sanabria
bed69d1002 =str rewrite Sink internal impl as GraphStage 2016-08-09 21:08:31 -05:00
Johan Andrén
92152edc89 Merge grabs empty input #21138 2016-08-09 17:16:11 +02:00
Johan Andrén
61f566063b named should not replace attributes #21068
Add attributes in named rather than replace, additionally: test coverage and missing method on RunnableGraph added
2016-08-09 15:11:59 +02:00
drewhk
c8026dc714 #20638: Harden TickSourceSpec (#21095) 2016-08-03 11:43:55 +02:00
Konrad Malawski
8a1f8f27dc =htc fix JsonFraming completion bug, exposed by new Interpreter 2016-08-02 15:58:34 +02:00
Konrad Malawski
3c2d021742 =htc improve patience on FramingSpec because Jenkins 2016-08-02 15:27:21 +02:00
Konrad Malawski
9cc32c3aba +htp #18837 completely rewrite EntityStreamingSupport
added CSV examples
updated docs
EntityStreamingSupport is now an entry point, to all streaming things
both read and write side use it
it's easy to extend as well
2016-08-02 15:27:21 +02:00
Konrad Malawski
f2419f5a08 =htp framed entity streaming cleanup, renames 2016-08-02 15:27:21 +02:00
Konrad Malawski
c76ec2ac15 +htp #18837 more docs and final cleanups, complete java docs 2016-08-02 15:27:21 +02:00
Konrad Malawski
24454f7f09 +htp #18837 JSON framing and framed entity streaming directives 2016-08-02 15:27:21 +02:00
drewhk
acc5223d38 Merge pull request #21002 from drewhk/wip-interpreter-improvements-drewhk
WIP - Interpreter improvements
2016-08-01 17:10:40 +02:00
Endre Sándor Varga
b8ceb863c9 reducing array load pressure by making connections an explicit object 2016-08-01 11:59:39 +02:00