Commit graph

26 commits

Author SHA1 Message Date
Patrik Nordwall
f017f6a90a Optimize TCP stream writes, #23919 (#23920)
* This is an optimization of TcpStreamLogic to accumulating bytes in a buffer while waiting for
  acknoledgment of pending write. This improves throughput for small messages (frames)
  without sacrificing latency. While waiting for the ack the stage will eagerly pull
  from upstream until the buffer limit is exceeded. Accumulated bytes are written
  immediately when ack is received.
* Noticed 20x throughput improvement with Artery MaxThroughputSpec thanks to this buffer
  when working on the Artery TCP implementation. The small message (100 bytes) benchmark
  improved from 30k msg/s to 600k msg/s.
2017-11-07 11:07:29 +09:00
Cause Chung
5892c2a569 Add more doc for framing on tcp streaming #23325 2017-09-23 12:09:05 +02:00
Johannes Rudolph
3a28584f77 =str gather no stack trace for TcpIdleTimeoutException (#23106)
Fixes akka/akka-http#1176
2017-06-06 02:14:45 -07:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Konrad Malawski
e7e1f74427 =str more specific error type if idle-timeout triggers in tcp 2016-12-14 12:39:24 +01:00
Schmitt Christian
6021e00a15 removes a blocking InetSocketAddress call with createUnresolved #21149 2016-08-17 09:39:31 +02:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
drewhk
6b759b2853 Merge pull request #19605 from akka/wip-minor-touchups-3000-√
=str - Sprinkles some finals in Tcp and improves docs in Flow
2016-02-01 14:24:27 +01:00
Viktor Klang
88c997a85c =str - Sprinkles some finals in Tcp and improves docs in Flow 2016-01-25 11:49:02 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
Endre Sándor Varga
60497f6561 also fix FlowInterleaveSpec
Also-by: Johan Andrén <johan@markatta.com>
Also-by: Roland Kuhn <rk@rkuhn.info>
Also-by: Martynas Mickevičius <mmartynas@gmail.com>
2016-01-20 10:01:58 +02:00
Roland Kuhn
a20bbce433 add fusing 2015-12-15 09:24:52 +01:00
Konrad Malawski
71740f3fcd =str fix race condition in case of early termination of connections source 2015-11-30 13:39:41 +01:00
Endre Sándor Varga
18843de175 =str: Make TCP fusable (first attempts) 2015-11-30 13:38:32 +01:00
Viktor Klang
bbb942d44e !str - 18608 - Moves the a.s.io.Timeouts functionality into Source/Flow/BidiFlow 2015-11-02 11:35:29 +01:00
Roland Kuhn
556012b7ee !str,htc replace and remove OneBoundedInterpreter
main work by @drewhk with contributions from @2m and @rkuhn

This work uncovered many well-hidden bugs in existing Stages, in
particular StatefulStage. These were hidden by the behavior of
OneBoundedInterpreter that normally behaves more orderly than it
guarantees in general, especially with respect to the timeliness of
delivery of upstream termination signals; the bugs were then that
internal state was not flushed when onComplete arrived “too early”.
2015-11-01 14:53:52 +01:00
Konrad Malawski
2c2228c241 =str #16597 initial steps with idleTimeout 2015-10-27 13:55:18 -07:00
kukido
f858881b2e =doc #17329 Spelling normalization, typos fixed. 2015-09-28 22:45:38 -07:00
Endre Sándor Varga
b5a813f766 Other minor improvements 2015-07-09 11:49:32 +02:00
Viktor Klang
2725bfc044 =str - Various internal Akka Stream improvements
* Gives Inlets and Outlets a `carbonCopy` method and switches to allocate them via `apply`
* Removes 4 Array allocations per FanIn and uses a bitmasked array instead
* Makes the FlattenStrategy.concat instance a singleton
2015-06-30 11:45:50 +02:00
Endre Sándor Varga
7879a5521b Rename FlowMaterializer to Materializer 2015-06-23 18:47:28 +02:00
Endre Sándor Varga
dc7269e620 Rename OperationAttributes to Attributes 2015-06-23 18:45:04 +02:00
Endre Sándor Varga
1c6b49b1aa +str #16889: Configurable TCP close modes 2015-06-19 16:27:03 +02:00
Endre Sándor Varga
f4c83771bb !str #17393: Make stream-tests pass with serialize-messages=on 2015-06-02 12:32:27 +02:00
Patrik Nordwall
1595a8a911 !str #17031 Rename StreamTcp to Tcp 2015-04-24 14:13:54 +02:00
Renamed from akka-stream/src/main/scala/akka/stream/scaladsl/StreamTcp.scala (Browse further)