Commit Graph

  • 4a689c7d57 Fix error when reset mhchia 2019-09-14 14:57:43 +08:00
  • b51c2939a8 Handle exceptions inside read_message mhchia 2019-09-14 14:16:40 +08:00
  • f62f07bb9f Handle IncompleteRead in handle_incoming mhchia 2019-09-13 15:32:10 +08:00
  • 2d8e02b7eb Add detection for disconnections in mplex mhchia 2019-09-13 15:29:24 +08:00
  • 393b51a744 isort mhchia 2019-09-12 17:09:11 +08:00
  • 5653b3f604 Add "closed" and "shutting_down" events mhchia 2019-09-12 17:07:41 +08:00
  • 7cf0495f37 Remove print mhchia 2019-09-19 15:38:38 +08:00
  • a7bc9fc358 Asynchronously handling the accepted stream. mhchia 2019-09-12 17:06:10 +08:00
  • 0c7afeebaf Fix test_security_multistream mhchia 2019-09-12 14:34:17 +08:00
  • 6cb033fd1f Refactor multiselect out of Swarm to BasicHost mhchia 2019-09-12 14:30:39 +08:00
  • 0bd213bbb7 Refactor mplex and start to add close detection mhchia 2019-09-12 00:38:12 +08:00
  • 7243eb9766 Fix different exception raised in test NIC619 2019-09-17 21:44:48 +08:00
  • f253152858 Handle protocol negotiation failure in swarm new_stream NIC619 2019-09-17 16:17:41 +08:00
  • 559f419b4e Fix stream registration in accept_stream NIC619 2019-09-17 15:42:18 +08:00
  • 0080466d86 Handle RawConnError in InsecureSession.run_handshake NIC619 2019-09-16 19:16:41 +08:00
  • 09bfa0ab09 Handle IOException in create_secure_session NIC619 2019-09-16 19:15:40 +08:00
  • c7593bff97 Add InconsistentNonce in secio NIC619 2019-09-16 19:11:46 +08:00
  • 359bcf45ff SecioException inherit from HandshakeFailure NIC619 2019-09-16 19:11:06 +08:00
  • d6dda91482 Move HandshakeFailure to libp2p.security NIC619 2019-09-16 19:09:09 +08:00
  • 4cd5b77f10 Raise RawConnError in RawConnection NIC619 2019-09-16 18:37:00 +08:00
  • cb632fa509 Add RawConnError NIC619 2019-09-16 18:35:48 +08:00
  • 76af835af8 Handle MultiselectError in stream_muxer.accept_stream NIC619 2019-09-15 17:35:01 +08:00
  • eaa74c4e26 Handle MultiselectCommunicatorError NIC619 2019-09-15 16:58:22 +08:00
  • 879f193aa1 Handle errors from - read_delim - read_varint_prefixed_bytes - decode_uvarint_from_stream NIC619 2019-09-15 16:58:08 +08:00
  • 905a473ac3 Add MultiselectCommunicatorError NIC619 2019-09-15 16:37:37 +08:00
  • 68573e94d3 Have StreamError inherit from IOException NIC619 2019-09-15 16:34:16 +08:00
  • 7483da762e Merge pull request #298 from NIC619/add_more_logging NIC Lin 2019-09-15 15:34:28 +08:00
  • f368f5e93b Apply PR feedback NIC619 2019-09-15 15:09:58 +08:00
  • 501513b747 Update IMultiselectClient NIC619 2019-09-14 22:24:53 +08:00
  • 9bad7a61f0 Add some loggings to pubsub NIC619 2019-09-14 21:54:26 +08:00
  • 786a03544c Add some loggings to swarm and cosmetic updates NIC619 2019-09-14 21:47:49 +08:00
  • 38f4223e62 Add pip-wheel-metadata to gitignore NIC619 2019-09-14 21:47:15 +08:00
  • 65a48d5c51 Remove unused select_protocol_or_fail NIC619 2019-09-14 17:42:18 +08:00
  • 811cd7813a Merge pull request #292 from mhchia/fix/dial-sig-changed Kevin Mai-Husan Chia 2019-09-11 18:56:36 +08:00
  • 8c8c206c33 flake8 mhchia 2019-09-11 18:33:52 +08:00
  • 451f993058 Fix isort mhchia 2019-09-11 18:05:41 +08:00
  • c1ffc0ab07 Fix transport.dial in swarm mhchia 2019-09-11 17:13:21 +08:00
  • cb1a25f94c Execute the todo to remove an unused argument Alex Stokes 2019-09-10 21:01:03 -04:00
  • 4bd32cc4bc Add logs during connection handshake Alex Stokes 2019-09-10 19:02:29 -04:00
  • f128c746f0 Write data payload as hex to log Alex Stokes 2019-09-10 16:17:40 -04:00
  • 68e75707e4 Enhance logs Alex Stokes 2019-09-10 16:03:24 -04:00
  • 988ef8c712 Merge pull request #287 from mhchia/fix/mplex-stream-close-reset Kevin Mai-Husan Chia 2019-09-10 23:57:44 +08:00
  • 31fb4e0b69 Rewrite _wait_for_data, to handle task precisely mhchia 2019-09-10 23:38:45 +08:00
  • df87f5adb9 Add tests against the daemon for close/reset mhchia 2019-09-10 17:51:39 +08:00
  • bb0da41eda Remove cleanup mhchia 2019-09-09 23:09:33 +08:00
  • a45eb76421 Suppress all exceptions in clean up. mhchia 2019-09-09 22:52:47 +08:00
  • e5eb01d22b Fix stream read mhchia 2019-09-09 22:48:49 +08:00
  • df312f3e57 Fix linting mhchia 2019-09-09 17:05:06 +08:00
  • 0ab548aee5 Add the missing tests mhchia 2019-09-09 16:58:58 +08:00
  • be2c0f122a Fix close behavior mhchia 2019-09-09 15:45:35 +08:00
  • b2146c5268 Don't crash on large messages Brian Cloutier 2019-09-09 14:12:38 -07:00
  • 155bec0562 Fix initiator flag during secio upgrade Alex Stokes 2019-09-09 16:40:14 -04:00
  • f9321924ad Merge pull request #286 from ralexstokes/fix-initiator-flag Alex Stokes 2019-09-08 16:03:34 -04:00
  • 2025a5c7f1 Restore initiator flag to BaseSession type Alex Stokes 2019-09-08 15:37:41 -04:00
  • f38899e26e Merge pull request #284 from ralexstokes/remove-friendly-ids Alex Stokes 2019-09-07 11:14:05 -04:00
  • 50ae439d20 remove friendly IDs Alex Stokes 2019-09-07 11:04:20 -04:00
  • 2d1d3d0136 Merge pull request #282 from mhchia/fix/mplex-stream-close-reset Alex Stokes 2019-09-06 19:49:03 -04:00
  • 6c1f77dc1a Fix: Change the event.close to event.set mhchia 2019-09-06 21:35:15 +08:00
  • 1cd969a2d5 Fix: Add typing in functions mhchia 2019-09-06 20:02:35 +08:00
  • a754e7dbbe Add the missing tests.constants mhchia 2019-09-06 17:59:39 +08:00
  • 649a230776 Fix MplexStream.read mhchia 2019-09-06 17:26:40 +08:00
  • 95926b7376 Temp for mplex_stream mhchia 2019-09-06 01:08:42 +08:00
  • 207fa75d8f Add reset and close mhchia 2019-09-05 23:44:22 +08:00
  • 10415cb956 Use ReadWriteCloser for conns and streams mhchia 2019-09-05 23:24:17 +08:00
  • eac159c527 Restructure mplex and mplex_stream mhchia 2019-09-05 22:29:33 +08:00
  • 96230758e4 Add events in MplexStream mhchia 2019-09-05 18:18:08 +08:00
  • 34b02588cf Merge pull request #279 from ralexstokes/echo-demo Alex Stokes 2019-09-04 19:54:28 +02:00
  • c1fdf9accf Add echo demo Alex Stokes 2019-09-03 22:21:01 -07:00
  • 7ed9eac3b6 Merge pull request #278 from ralexstokes/add-buffering-to-secio-reads Alex Stokes 2019-09-04 19:38:29 +02:00
  • 451ec2664a Address incorrect typing in pycryptodome dependency Alex Stokes 2019-09-04 10:19:27 -07:00
  • a099b9c65d Clean up temporary hold over from previous PR Alex Stokes 2019-09-04 10:15:30 -07:00
  • b214f88f75 Avoid using message-based IO in the plaintext protocol Alex Stokes 2019-09-04 09:28:53 -07:00
  • f86ba7283d Implement signing for RSA Alex Stokes 2019-09-04 09:27:57 -07:00
  • 25f504ad35 Allow RSA public key type when deserializing keys Alex Stokes 2019-09-04 09:13:19 -07:00
  • 1a359770dd Use msgio IO and proper buffering in secio implementation Alex Stokes 2019-09-03 22:08:09 -07:00
  • fc3e3a4be5 Changes to type hints to match new abstractions Alex Stokes 2019-09-03 22:07:05 -07:00
  • 6d97702da7 Merge pull request #277 from ralexstokes/add-io-abstractions Alex Stokes 2019-09-04 19:11:50 +02:00
  • a764fd4e6f simplify some of the msgio class hierarchy via PR feedback Alex Stokes 2019-09-04 09:57:04 -07:00
  • e9ca372fb5 Merge pull request #271 from mhchia/fix/pubsub-interop Kevin Mai-Husan Chia 2019-09-04 22:28:14 +08:00
  • 1f3c9af45b Add the missing is_proc_running=True mhchia 2019-09-04 22:19:11 +08:00
  • 34b489af25 Fix kad_peerinfo according to peerinfo mhchia 2019-09-04 21:37:33 +08:00
  • 0e3d4508d6 PR feedback mhchia 2019-09-04 20:49:14 +08:00
  • db0da8083a Do p2pd.close if not all of them succeed mhchia 2019-09-04 18:25:51 +08:00
  • 51d547ccc5 Update tests/interop/utils.py Kevin Mai-Husan Chia 2019-09-04 20:38:38 +08:00
  • b72c489f4e Update tests/interop/daemon.py Kevin Mai-Husan Chia 2019-09-04 20:36:42 +08:00
  • a843514afb Update tests/interop/daemon.py Kevin Mai-Husan Chia 2019-09-04 20:35:42 +08:00
  • 155f523c9f Update tests/interop/daemon.py Kevin Mai-Husan Chia 2019-09-04 20:33:50 +08:00
  • bd21b2f66f Update tests/interop/conftest.py Kevin Mai-Husan Chia 2019-09-04 20:33:29 +08:00
  • 5113785543 Update libp2p/pubsub/pubsub.py Kevin Mai-Husan Chia 2019-09-04 20:32:43 +08:00
  • 46c13ee1c0 Fix CI to call the script in the correct path mhchia 2019-09-04 16:34:56 +08:00
  • dddaacad62 Move install script under tests/interop/go_pkgs mhchia 2019-09-04 16:33:25 +08:00
  • 677531db76 Fix pubsub tests mhchia 2019-09-04 15:33:07 +08:00
  • 2a02f92f77 Temporary porcelain until next PR Alex Stokes 2019-09-03 21:59:09 -07:00
  • 8e8318aa5c Introduces IO abstractions apart from asyncio or those attached to IRawConnection Alex Stokes 2019-09-03 21:42:45 -07:00
  • cd3e093001 remove leftover simple security module Alex Stokes 2019-09-03 21:38:33 -07:00
  • 506093216c Merge pull request #276 from ralexstokes/fix-secio-impl Alex Stokes 2019-09-03 23:01:45 +02:00
  • 272ab60d47 Merge pull request #275 from ralexstokes/use-different-ecc-backend Alex Stokes 2019-09-03 23:00:33 +02:00
  • 30456f8018 Use a different ECC backend with a compatible serializer Alex Stokes 2019-09-03 13:21:07 -07:00
  • bfd674e22c Try all pairs of choices, not just a small subset via zip Alex Stokes 2019-09-03 13:28:31 -07:00
  • f8bbaf60a1 Add more information to the peer mismatch exception Alex Stokes 2019-09-03 13:28:18 -07:00