Question

16 views
Skip to first unread message

ivoszz

unread,
Oct 13, 2011, 6:56:58 PM10/13/11
to SPORE
Hi list,

I have a simple question. Is it possible to set timeout on the
request? I looked into available documentation and did not find clear
answer. There is written that you can setup callback function with
middleware, so I can "sleep" and check for data after the timeout has
expired but having example will be very helpful. I use Lua as a main
language.

I want also thank you all for great library.

ivoszz

François Perrad

unread,
Oct 19, 2011, 4:04:06 PM10/19/11
to spore...@googlegroups.com
2011/10/14 ivoszz <ivo...@gmail.com>:

> Hi list,
>
> I have a simple question. Is it possible to set timeout on the
> request? I looked into available documentation and did not find clear
> answer. There is written that you can setup callback function with
> middleware, so I can "sleep" and check for data after the timeout has
> expired but having example will be very helpful. I use Lua as a main
> language.
>

As far I understand, it is a LuaSocket question.
The function request() in Spore/Protocols.lua calls
http://w3.impa.br/~diego/software/luasocket/http.html#request (generic
form).
And LuaSocket supplies too
http://w3.impa.br/~diego/software/luasocket/tcp.html#settimeout

François

Reply all
Reply to author
Forward
0 new messages