Commit Graph

38 Commits

Author SHA1 Message Date
ded3792924 Merge pull request #331 from dmuhs/fix/docs-format
Add automatic docstring formatting
2019-10-28 09:39:52 -06:00
bafdd8512d Enforce pre-summary newline in docstrings 2019-10-24 20:10:45 +02:00
b5eeceecbf Rename raw connection initiator flags 2019-10-24 19:28:42 +02:00
eef505f2d9 Add automatic docstring formatter and apply 2019-10-24 08:41:10 +02:00
92deae41dc Change SwarmConn.conn to muxed_conn 2019-09-23 15:46:50 +08:00
8d2415a404 Move calls to Notifee inside Swarm 2019-09-23 15:01:58 +08:00
6f8394e4bd Merge branch 'master' into fix/change-notifee-and-add-tests-for-swarm-conn-and-mplex 2019-09-21 18:34:12 +08:00
e44c2145cc Merge branch 'master' into fix/detection-of-close 2019-09-21 18:05:54 +08:00
89c127eff4 Merge branch 'master' into fix/refactor-mplex-swarm-host 2019-09-20 15:45:28 +08:00
7fc958e7be Add exception raised to docstring 2019-09-19 22:19:36 +08:00
a9ad37bc6f Add mplex tests and fix error in SwarmConn.close 2019-09-19 16:31:41 +08:00
d61327f5f9 Add tests for SwarmConn 2019-09-19 16:31:41 +08:00
5307c0506b Change IMuxedConn to INetConn in Notifee 2019-09-19 16:31:41 +08:00
e7304538da Add test for Swarm.close_peer 2019-09-19 16:31:12 +08:00
2d8e02b7eb Add detection for disconnections in mplex 2019-09-19 15:55:26 +08:00
7cf0495f37 Remove print 2019-09-19 15:38:38 +08:00
a7bc9fc358 Asynchronously handling the accepted stream. 2019-09-19 13:59:51 +08:00
6cb033fd1f Refactor multiselect out of Swarm to BasicHost 2019-09-19 13:59:50 +08:00
0bd213bbb7 Refactor mplex and start to add close detection 2019-09-19 13:56:05 +08:00
4cd5b77f10 Raise RawConnError in RawConnection 2019-09-16 18:37:00 +08:00
cb632fa509 Add RawConnError 2019-09-16 18:35:48 +08:00
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