-
Notifications
You must be signed in to change notification settings - Fork 176
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
socket.read() does not work #485
Comments
I checked the situation (using a month older version, but I see no essential changes inside java_net.ts, so I expect the same for the current version):
|
This is my version of socketRead0 which works well for me:
A lot of changes were done. This solution is able to run my (home made) web / app server using reverse HTTP connections. One browser session opens up to 5 connections in parallel to the web server which are all running well. For testing purposes I added the use of socket timeout to my implementation, which works also as expected. |
I'm happy that you found a solution that works for you. :) The sockets_fixed branch works locally on a simple test, but is currently failing on Travis. I'd like to figure out why that is before I enhance it further. If you feel like testing it out, let me know if it works for you! |
I would check the socket_fixed branch, but "npm install" results into error(s). How is this branch installed and build? |
Is it the case that creating a socket is only supported in the browser (outside of that |
No. This is the case that the socket implementation in general is currently buggy. |
My code looks like:
This results always in c = -1 (EOF). On the server side the connection stays on, NO data is sent to the client.
No more infos for the moment, I will continue to check the situation tomorrow. I opened this issue early to give a chance, to look at this topic in combination with the socket.write() problem that I had submitted before.
The text was updated successfully, but these errors were encountered: