your test works on my machine (xp sp3)... btw, why not bundle luarocks
for windows with working stock wget binaries?

On Sun, Sep 19, 2010 at 02:41, David Manura <[email protected]> wrote:
> On Sat, Sep 18, 2010 at 6:43 PM, Cosmin Apreutesei
> <[email protected]> wrote:
>> The wget bundled with luarocks 2.0 (same was for 1.0, I reported the
>> problem ages ago but can't find the message/resolution in the mailing
>> list) gets stuck forever (killed it after few minutes). Getting the
>> official windows binaries solves it. Sorry I have no clue what the
>> problem is.
>
> I recall something like that about a year ago when using MSVC/MinGW
> native Windows (i.e. excluding Cygwin) builds of luasockets and wget.
> Downloads via IE did not exhibit the problem.  I don't recall what the
> issue was, whether it was the firewall or otherwise.  Anywhere, here's
> the test code I made at the time.
>
>  -- test code that tends to hang on some setups after downloading
> approximately 1 MB.
>  -- (note: adding the pause tends to improve it)
>  require "socket"
>  local function pause() for i=1,1e6 do end end
>  local soc = socket.tcp()
>  soc:connect("mirrors.xmission.com", 80)
>  soc:send("GET /ubuntu-cd/jaunty/ubuntu-9.04-desktop-i386.iso
> HTTP/1.1\nHOST: mirrors.xmission.com\n\n")
>  local count = 0
>  while 1 do
>   local data, msg = soc:receive(1000)
>   if not data then print('end', msg) break end
>   count = count + #data
>   print(count)
>  end
>
> _______________________________________________
> Luarocks-developers mailing list
> [email protected]
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
>

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to