Skip to content

EOF error when using Proxy #84

@qclassified

Description

@qclassified

Lomond throws EOF error for proxy

from lomond import WebSocket
from lomond.persist import persist

def lomond_bug_test(proxies):
    url = "ws://demos.kaazing.com/echo"
    ws = WebSocket(url, proxies = proxies)
    for event in persist(ws):
        print("Event name: " + event.name)
        if event.name == 'connect_fail':
            print("Event reason : " + event.reason)
                  
proxies_8888 = {
    'http': 'socks5://localhost:8888',
    'https': 'socks5://localhost:8888'
    }

lomond_bug_test(proxies_8888)  

Output:
Event name: connecting
error connecting to ws://demos.kaazing.com/echo; ('proxy parse fail; {}', ParseEOF('unexpected eof of file'))
Event name: connect_fail
Event reason : ('proxy parse fail; {}', ParseEOF('unexpected eof of file'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions