This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Description
Minimal crash code:
#!/usr/bin/python
import sys
import pyuv
##
## Default loop
##
loop = pyuv.Loop.default_loop()
##
## Create TCP connection
##
# One of FreeNODE IRC Server Host
ip, port = '62.231.75.133', 6666
def read_cb(tcp_handle, data, errno):
print("Socket read (errno = {errno!r})".format(errno=errno))
print data
def connect_cb(tcp_handle, errno):
print("Connect (errno = {errno!r})".format(errno=errno))
tcp_handle.start_read(read_cb)
tcp = pyuv.TCP(loop)
tcp.connect((ip, port), connect_cb)
##
## Using TTY interaction
##
def terminal_read_cb(*args):
print("Terminal read")
print args
tty = pyuv.TTY(loop, sys.stdin.fileno(), True)
tty.start_read(terminal_read_cb)
##
## Main point
##
loop.run()
On Windows platform it cause a
Connect (errno = None)
Socket read (errno = -4060)
None
Terminal read
Unhandled exception in callback