News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
socket.http bug or aminotdoinitrite?
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
socket.http bug or aminotdoinitrite?

In the LuaSocket docs:

Code:
-- tries to connect to server "wrong.host" to retrieve "/"
-- and fails because the host does not exist.
r, e = http.request("http://wrong.host/")
-- r is nil, and e returns with value "host not found"

When I try this it does more than fail...it takes murgaLua down with it. Wondering if this is expected behaviour, because it seems like this is a pretty harsh way to handle it.

Code:
/home/deb/bin/murgaLua: No route to host
stack traceback:
        [C]: in function 'request'
        /home/deb/bin/media.lua:28: in main chunk
        [C]: ?

12-28-2010 01:14 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
socket.http bug or aminotdoinitrite? - mikshaw - 12-28-2010 01:14 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: