We built a simple emscripten app based on the test_sockets_echo_client.c
and test_sockets_echo_server.c files in tests/sockets, then noticed that
the compiled client code works fine on the latest version of IE and
Firefox, but fails on Chrome and Opera. We get an error on the client where
the assertion is made to check that data is available on the socket. So I
pulled out the original test code, defined a port via SOCKK, and lo and
behold, I see the exact same behavior. The error we see on the client is as
follows:
Uncaught Assertion failed: available, at:
test_sockets_echo_client.c,84,main_loop at Error
at jsStackTrace (http://localhost:8787/index.js:987:13)
at stackTrace (http://localhost:8787/index.js:1004:22)
at ___assert_fail (http://localhost:8787/index.js:4161:210)
at Array._main_loop (http://localhost:8787/index.js:7307:4)
at dynCall_v (http://localhost:8787/index.js:10884:30)
at Object.Runtime.dynCall (http://localhost:8787/index.js:264:39)
at http://localhost:8787/index.js:4242:21
at Object.Browser.mainLoop.runIter
(http://localhost:8787/index.js:6155:13)
at Browser_mainLoop_runner (http://localhost:8787/index.js:4238:26)
The server also presents an error:
........\a.out.js:84
throw ex;
^
Assertion failed: errno == EAGAIN, at: ./test_sockets_msg.h,75,do_msg_write
at Error
at jsStackTrace
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:987:13)
at stackTrace
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:1004:22)
at ___assert_fail
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:4112:210)
at _do_msg_write
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:7127:3)
at Array._main_loop [as 2]
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:7340:10)
at dynCall_v
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:10792:30)
at Object.Runtime.dynCall
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:264:39)
at
C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:4193:21
at Object.Browser.mainLoop.runIter
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:6105:13)
at Browser_mainLoop_runner [as _onTimeout]
(C:\Users\rsivek\Projects\BBC\bbc-wfd\temp_test_code\echo_test\a.out.js:4189:26)
I was able to get the actual errno as 107 (ENOTCONN), which makes me think
that the client is somehow closing the connection unexpectedly.
We really need this to work on all major browsers, so any help would be
greatly appreciated.
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.