Issue 251: socket_connect() in non-blocking return error
Status:  New
Owner: ----
Reported by wit...@g.debuz.com, Aug 19, 2013
the line 413 in Socket.cpp must be changed from
gc_exit_blocking();
to
block_error();

Aug 19, 2013
#1 wit...@g.debuz.com
What steps will reproduce the problem?

var s : Socket = new Socket();
s.setBlocking(false);
try
{
  s.connect(new Host("www.google.com"), 80);
}
catch (e : Dynamic)
{
  trace(e);
}


What is the expected output? What do you see instead?

The output is "Failed to connect on www.google.com:80". It must be "Blocking".


What version of the product are you using? On what operating system?

HAXE 3.0, hxcpp 3.0.2

Please provide any additional information below.