Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it work on Linux and language 0.1.091 #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

foxik0169
Copy link

This solves #12 atleast for version 0.1.091.

I've been running it this way on a vps for 1 week without crashes and leaking memory, but I am not sure if this implementation is "the correct" way of doing it.

@@ -870,7 +876,7 @@ Result_Status :: enum {
FAILURE;
}

Socket :: #type SOCKET;
//Socket :: #type SOCKET;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw that this is already defined in the Socket module, so I think it can go ahead and be delete.

Suggested change
//Socket :: #type SOCKET;


return -1, error_no;
}

if msg_header.msg_flags & MSG_TRUNC return -1;
//if msg_header.msg_flags & MSG_TRUNC return -1; @TODO
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still a TODO?


if poll_count == 0 then return .NONE;
if poll_socket.revents & POLLOUT then condition.* |= .WAIT_SEND;
if pollSocket.revents & POLLIN then condition.* |= .WAIT_RECEIVE;
//if poll_socket.revents & POLLOUT then condition.* |= .END;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this isn't needed then I think it can be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants