-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
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
Labels
No labels