Closed ousado closed 10 years ago
Wow that's great! Thanks a lot for your work on this.
Running your example I get this output:
Main.hx:11: { host : 173.194.113.167, port : 80 }
Main.hx:21: 517 99483 HTTP/1.0 302 Found
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Location: http://www.google.de/?gfe_rd=cr&ei=kqQ_U-rGLsGK8Qes1IGwAQ
Content-Length: 258
Date: Sat, 05 Apr 2014 06:37:06 GMT
Server: GFE/2.0
Alternate-Protocol: 80:quic
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.de/?gfe_rd=cr&ei=kqQ_U-rGLsGK8Qes1IGwAQ">here</A>.
</BODY></HTML>
Main.hx:26: Eof
Traceback (most recent call last):
File "bin/python.py", line 2112, in <module>
Main.main()
File "bin/python.py", line 1104, in Main_statics_main
wro = sys_net_Socket.select(sclients, [], [], 0.0)
File "bin/python.py", line 2054, in Socket_statics_select
t3 = select.select(read, write, others, timeout)
OSError: [WinError 10022] An invalid argument was supplied
For what it's worth I get something quite similar on neko:
Main.hx:26: Eof
Called from ? line 1
Called from Main.hx line 47
Called from C:\GitHub\haxe\std/neko/_std/sys/net/Socket.hx line 225
Uncaught exception - std@socket_select
Apparently you cannot pass three empty arrays to Socket.select
on Windows. In your example sclients
is empty.
Could you try running this: