-
Notifications
You must be signed in to change notification settings - Fork 13
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
Can't read from sockets #34
Comments
Haven't tried it in a long time. I'll try and have a go soon.
…On Wed, Aug 31, 2022 at 3:20 PM guregu ***@***.***> wrote:
I'm having some trouble getting the HTTP server example to run:
tpl samples/http_server.pl -g main
It seems to accept connections fine, but getline/3 repeatedly fails with
EAGAIN, leaving the client hanging forever. I get this behavior with
threads enabled and disabled.
Not sure if this is actually a bug or an issue with my environment. Could
someone else give this a try? I'm on Ubuntu 20.04 under WSL.
—
Reply to this email directly, view it on GitHub
<#34>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFNKSETVVNIH2CABHQGLCGDV33TRPANCNFSM6AAAAAAQBA23LM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I see accept failing and looping, when it should block waiting for a
connection.
…On Wed, Aug 31, 2022 at 3:20 PM guregu ***@***.***> wrote:
I'm having some trouble getting the HTTP server example to run:
tpl samples/http_server.pl -g main
It seems to accept connections fine, but getline/3 repeatedly fails with
EAGAIN, leaving the client hanging forever. I get this behavior with
threads enabled and disabled.
Not sure if this is actually a bug or an issue with my environment. Could
someone else give this a try? I'm on Ubuntu 20.04 under WSL.
—
Reply to this email directly, view it on GitHub
<#34>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFNKSETVVNIH2CABHQGLCGDV33TRPANCNFSM6AAAAAAQBA23LM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Pushed a few fixes to devel.
Server:
~/trealla (devel) $ tpl -g main samples/http_server.pl
["GET","/","1.1",[]]
^C
Client:
~/trealla (devel) $ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1
HTTP/"1.1" 200 Ok
Connection: close
Content-Type: text/html
<html><body><h1>Home</h1><h2>[]</h2></body></html>
Connection closed by foreign host.
~/trealla (devel) $
…On Wed, Aug 31, 2022 at 3:20 PM guregu ***@***.***> wrote:
I'm having some trouble getting the HTTP server example to run:
tpl samples/http_server.pl -g main
It seems to accept connections fine, but getline/3 repeatedly fails with
EAGAIN, leaving the client hanging forever. I get this behavior with
threads enabled and disabled.
Not sure if this is actually a bug or an issue with my environment. Could
someone else give this a try? I'm on Ubuntu 20.04 under WSL.
—
Reply to this email directly, view it on GitHub
<#34>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFNKSETVVNIH2CABHQGLCGDV33TRPANCNFSM6AAAAAAQBA23LM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
devel branch works great! Thanks for the quick fix :) |
And it doesn't use threads. None of Trealla does.
…On Wed, Aug 31, 2022 at 3:20 PM guregu ***@***.***> wrote:
I'm having some trouble getting the HTTP server example to run:
tpl samples/http_server.pl -g main
It seems to accept connections fine, but getline/3 repeatedly fails with
EAGAIN, leaving the client hanging forever. I get this behavior with
threads enabled and disabled.
Not sure if this is actually a bug or an issue with my environment. Could
someone else give this a try? I'm on Ubuntu 20.04 under WSL.
—
Reply to this email directly, view it on GitHub
<#34>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFNKSETVVNIH2CABHQGLCGDV33TRPANCNFSM6AAAAAAQBA23LM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm having some trouble getting the HTTP server example to run:
It seems to accept connections fine, but getline/3 repeatedly fails with EAGAIN, leaving the client hanging forever. I get this behavior with threads enabled and disabled.
Not sure if this is actually a bug or an issue with my environment. Could someone else give this a try? I'm on Ubuntu 20.04 under WSL.
The text was updated successfully, but these errors were encountered: