HTTPD library
Posted: Wed Apr 15, 2020 12:30 pm
I've got a question regarding the new "HTTPD library" (LiveCode 9)
It's super handy to create a server, with just a few lines :
Let's imagine that LiveCode takes several seconds to process the script NewRequest.... If from another browser i make another connexion... I will have to wait for Livecode to finish the script from the first connexion, right ?
To summarize : if the server takes 10 seconds to do something... then any new client will have to wait to end of those 10 seconds, before to be served (10 seconds again etc) ?
There isn't any "multithread" here ?
It's super handy to create a server, with just a few lines :
Code: Select all
on mouseUp
httpdStart "NewRequest", 12345, "My Server"
launch url ("http://localhost:" & it)
end mouseUp
on NewRequest pSocketID, pRequest
httpdResponse pSocketID, 200
end NewRequest
To summarize : if the server takes 10 seconds to do something... then any new client will have to wait to end of those 10 seconds, before to be served (10 seconds again etc) ?
There isn't any "multithread" here ?