8000 Comparing massive-com:master...davidel:master · massive-com/client-python · GitHub
[go: up one dir, main page]

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: massive-com/client-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: davidel/client-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 15 commits
  • 4 files changed
  • 1 contributor

Commits on Mar 22, 2022

  1. Update websocket_client.py

    There should be no need to install the signal handlers to close the connection if the application terminates.
    If it does, the OS will close all the file handles owned by the terminating process, among which the sockets used by the connection.
    And upon closure, the TCP stack will properly issue a reset which will be noticed by the remote server.
    
    The issue is that, on top of what already underlined in the existing comments (override of user specified signals), setting a signal handler from outside the main thread will result with an error:
    
    ```
    ER20220322 17:42:45.726997;root;utils:   File "/usr/local/lib/python3.8/dist-packages/polygon/websocket/websocket_client.py", line 42, in __init__
    ER20220322 17:42:45.726997;root;utils:     signal.signal(signal.SIGINT, self._cleanup_signal_handler())
    ER20220322 17:42:45.726997;root;utils:   File "/usr/lib/python3.8/signal.py", line 47, in signal
    ER20220322 17:42:45.726997;root;utils:     handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
    ER20220322 17:42:45.726997;root;utils: ValueError: signal only works in main thread
    ```
    
    This in turn leads to the inability to create a websocket connection from outside the main thread.
    davidel authored Mar 22, 2022
    Configuration menu
    Copy the full SHA
    3b3c7fe View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. Clear the event on close

    davidel authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    5bf7644 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from davidel/patch-1

    Update websocket_client.py
    davidel authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    22056f7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cadce08 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2022

  1. Update websocket_client.py

    davidel authored Mar 25, 2022
    Configuration menu
    Copy the full SHA
    b3dac31 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2022

  1. Simplify Code

    davidel authored Apr 19, 2022
    Configuration menu
    Copy the full SHA
    652b8e3 View commit details
    Browse the repository at this point in the history
  2. Reorganize Code

    davidel authored Apr 19, 2022
    Configuration menu
    Copy the full SHA
    0f55d7d View commit details
    Browse the repository at this point in the history
  3. Fix Signature

    davidel authored Apr 19, 2022
    Configuration menu
    Copy the full SHA
    a0f3975 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2022

  1. Minor reformat

    davidel authored Apr 20, 2022
    Configuration menu
    Copy the full SHA
    703493b View commit details
    Browse the repository at this point in the history
  2. Fix example

    davidel authored Apr 20, 2022
    Configuration menu
    Copy the full SHA
    5511df6 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Configuration menu
    Copy the full SHA
    bd79e31 View commit details
    Browse the repository at this point in the history
  2. Bumped version.

    davidel committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    8949748 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    946c563 View commit details
    Browse the repository at this point in the history
  4. Allow better None handling.

    davidel committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    37f4cca View commit details
    Browse the repository at this point in the history

Commits on May 1, 2025

  1. Added project file.

    davidel committed May 1, 2025
    Configuration menu
    Copy the full SHA
    e069359 View commit details
    Browse the repository at this point in the history
Loading
0