463 Commits

Author SHA1 Message Date
Dmitriy Ryajov
a280b50674 wip: proper eof handling 2020-04-19 18:10:07 -06:00
Dmitriy Ryajov
6365208948 wip 2020-04-18 15:41:57 -06:00
Dmitriy Ryajov
03bd04544e moved several utils 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
6bdae367a2 use data.len when size < 0 or > buff.len 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
72545faabd fix reading and fixup tests 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
7a49b6d962 moved util funcs to utils module 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
c61b9dff61 remove closed flag 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
21e99c638d rework with pipe 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
8741e1ce36 moving util procs to utils module 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
1269cc6d06 remove unneeded pragma 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
13f299fb0c wip: multistream select rework 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
6ff6833d26 add helper toThrough 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
95bed79095 proper dispatch 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
1eee46e493 remove prints 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
b83cd9703d rework select 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
b990a1f49f more small fixes on transports 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
2c861d9c27 adding pushable stream 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
61964458ef cosmetic 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
322fa51262 move toFuture out 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
bcacd2ef98 fix and add tests 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
6a7b0675d7 try without methods 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
ca6862b8ba make lenprefixed object instead of ref 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
a06731d221 fix compilation 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
10e0e317d2 move eof and closed flags 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
9850b948d7 dont use methods unless needed 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
a2cdc10cb0 expose len 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
d521bb91e8 use readOnce 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
d17997540f wip 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
f58744fabe wip 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
b5e60a084a use methods 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
7284ee1689 remove shallowCopy 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
75c0100542 rename stream to streams 2020-04-17 17:18:13 -06:00
Dmitriy Ryajov
becdef923f initial connection implementation 2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
c7bfaa00cf small fixes to ringbuffer 2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
60749d8dfa encoder and decoder throughs should be factories 2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
8b6efee356 source and sink should be factories 2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
bf6eeca6ff adding Stream base type 2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
b92f8368c1 implement streaming length prefixed parser 2020-04-17 17:18:12 -06:00
Dmitriy Ryajov
a644a19a2d wip: rework with async iterators 2020-04-17 17:18:12 -06:00
Jacek Sieka
e8b33c64fa
secp: use upstream secp convenience api (#141)
* secp: use upstream secp convenience api
2020-04-17 12:51:13 +02:00
Ștefan Talpalaru
eaa73ae6e8
add stream metrics (#136)
* add stream metrics

- just BufferStream and Connection are tracked, for now
- flag checking is enforced more strictly in close(), since it became
  clear that instances are closed multiple times

* add "metrics" dependency

and sort the list
2020-04-14 15:27:07 +02:00
Ștefan Talpalaru
7723403b1f
debug prints (#132)
* debug prints

* CI: enable stack traces

* Azure: better NimBinaries cache key

* CI changes

- Azure: remove Linux target
- Travis: add ARM64 target

* uglify the code in order to save 12 bytes per LPStream object
2020-04-14 15:21:16 +02:00
Jacek Sieka
2b823bde68
secp: update (#138) 2020-04-12 19:03:08 +02:00
Giovanni Petrantoni
303ec297da
Start removing allFutures (#125)
* Start removing allFutures

* More allfutures removal

* Complete allFutures removal except legacy and tests

* Introduce table values copies to prevent error

* Switch to allFinished

* Resolve TODOs in flood/gossip

* muxer handler, log and re-raise

* Add a common and flexible way to check multiple futures
2020-04-11 13:08:25 +09:00
Dmitriy Ryajov
f4740c8b8e fix trace runs in connection 2020-04-07 14:55:05 -06:00
Dmitriy Ryajov
00fbc9246e fix nil condition 2020-04-07 12:16:59 -06:00
Dmitriy Ryajov
6cbcc7859e reduse usssage of asyncCheck 2020-04-07 12:16:59 -06:00
Dmitriy Ryajov
bd49a35e0a formatting 2020-04-07 12:16:59 -06:00
Dmitriy Ryajov
976164ba3c proper connection cleanup 2020-04-07 12:16:59 -06:00
Dmitriy Ryajov
0c8dde15e7 remove unused field 2020-04-07 12:16:59 -06:00