Skip to content

OCEmu crashes during reading TCP socket #39

@GusarevKirill

Description

@GusarevKirill

Hello. My OCEmu (latest version) crashes every time when I'm trying to call connection.read().
Example code:

local internet = require("internet")

local connection = internet.open("habr.com", 80)

connection.write("GET / HTTP/1.1\r\nHost: www.habr.com\r\n\r\n")
*Little time has passed*
local response = connection.read() -- *OCEmu window close after ~~3 seconds*

Why? And how to fix it? Pls :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions