Commit Graph

17 Commits

Author SHA1 Message Date
8e8318aa5c Introduces IO abstractions apart from asyncio or those attached to IRawConnection
Also adds `msgio` utilities to mirror the Go implementation
2019-09-03 21:59:50 -07:00
5b32bfdd3f Add call to wait_closed method of asyncio.StreamWriter 2019-08-24 22:06:24 +02:00
9c5fb4fa5a Encapsulate concept of a "stream id" to a "muxed" connection 2019-08-24 21:50:07 +02:00
e29c1507bf remove unused fields 2019-08-24 21:50:06 +02:00
ef476e555b Use RawConnection.read
Instead of accessing its reader and writer directly.

TODO: considering add `ReaderWriterCloser` interface and let connection
and stream inherit from it.
2019-08-22 22:53:48 +08:00
0b466ddc86 Add lock to RawConnection
To avoid `self.writer.drain()` is called in parallel.
Reference: https://bugs.python.org/issue29930
2019-08-22 22:53:47 +08:00
20dd7d777a More efficiently remove trailing newline from message 2019-08-15 16:33:34 -07:00
e763f57930 run isort 2019-08-05 11:47:23 +08:00
239a5c88fb add typing to mplex 2019-08-05 10:45:46 +08:00
7b7c8ad30d run black over dangling files 2019-08-02 11:47:08 -07:00
2e94fcf56c Remove pylint:disable 2019-08-02 23:26:06 +08:00
a86f010c95 add typing to security 2019-08-01 19:12:11 +08:00
0ae9840928 Run black over repo 2019-07-31 15:00:12 -07:00
edd164c878 Add type hints to network folder 2019-07-30 16:25:17 +08:00
4333c2d061 Fix linting issues' 2019-05-01 13:54:19 -04:00
f59f27d4d0 Integrate security selectin into libp2p system 2019-04-30 03:09:05 -04:00
ce6ddb27a9 Migrate to new project structure. 2019-01-09 21:38:56 +03:00