commit | 94a6bfce9b714f13dfd94c2f5df3666e2601c053 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <thierry.fournier@ozon.io> | Wed Jul 12 12:10:44 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:32 2017 +0100 |
tree | a9df9bb52f9b2d470844d1c35f7e33553f1ef765 | |
parent | 4325ab727ca4ba07a68d37bd35c464d46b7f8cdb [diff] |
MEDIUM: threads/lua: Cannot acces to the socket if we try to access from another thread. We have two y for nsuring that the data is not concurently manipulated: - locks - running task on the same thread. locks are expensives, it is better to avoid it. This patch cecks that the Lua task run on the same thread that the stream associated to the coprocess. TODO: in a next version, the error should be replaced by a yield and thread migration request.