ASync Socket Loop/Read Bug

Issue #2 resolved
Russell B. repo owner created an issue

ASync Loop Bug

Can't call method "write" on an undefined value at /usr/local/share/perl/5.10.1/IO/Async/Protocol/Stream.pm line 200.

Attempted Fix in sub add_socket in lib/API/Socket.pm

        on_write_eof => sub {
            API::Socket::on_disconnect($id);
        }
        on_read_error => sub {
            API::Socket::on_disconnect($id);
        }
        on_write_error => sub {
            API::Socket::on_disconnect($id);
        }

Comments (2)

  1. Log in to comment