* tag 'v1_2_1' of https://github.com/keplerproject/copas: Update README for release new rockspec added update docs fixed bad version number, added some comments, and realigned some code (whitespace) doc updates fix os.difftime fixed docs applied some 'google translate' on Russian comments updated use of os.time() to socket.gettime() becasue latter has higher precision Update documentation Update rockspec Fixed maximum allowed timeout for select New threads should be added to the end of the list small fix New functions copas.sleep() and copas.wakeup() Useful for threads added with copas.addthread() fix version in README support for lua 5.2 removed unused variables (Thx ZeroBrane Studio code analysis!) Updated docs, added an example for adding a thread.
If there are multiple threads using sleep(0) for example, the new threads are always pop'ed first and may cause a starvation problem for existing threads. Now threads are handled in the order they were added.
* 'master' of git://github.com/keplerproject/copas: Updated UDP functionality and accompanying documentation. Added receivefrom(), sendto() methods and updated the wrap() method to be UDP or TCP specific. Change is fully transparent to existing usage. Very minor update to step() function. To return a result based upon data handled or timeout. Fully transparent, no breaking of existing code. This tells the caller that it should asap resume IO (eg. next call to step()) because data is coming in, or alternatively it timed out and there is (some) time to do something else temporarily. Added possibility for UDP servers, based upon fix by Cuero Bugot. Added minor code to auto detect socket type (UDP/TCP), so all function signatures remain the same and handling is transparent. Also updated documentation. autoclose option, set to false to not close socket after handler finishes