(adress)
| 127 | var closeServersST = {}; |
| 128 | |
| 129 | function closeServerST(adress) |
| 130 | { |
| 131 | closeServersST[adress] = setTimeout(async function(adress) { |
| 132 | |
| 133 | console.log('Closing server: '+adress); |
| 134 | |
| 135 | await servers[adress].destroy(); |
| 136 | delete servers[adress]; |
| 137 | |
| 138 | }, 60 * 10 * 1000, adress); // Close server connection after 10 minutes without using |
| 139 | } |
| 140 | |
| 141 | async function read(path, _realPath) |
| 142 | { |