-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Nguyễn Hồng Quân,

each request will make uhttpd fork off a new process with an isolated 
process space. Every memory you modify within there will get discarded 
once the process serving the request ends.

However you can use luci.util.serialize_data() and 
luci.util.restore_data() to serialize arbitrarily nested structures and 
write them to the filesystem, e.g. into /tmp so that another 
module/process can load them from there.

See http://luci.subsignal.org/api/luci/modules/luci.util.html#restore_data

~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAqCmgACgkQdputYINPTPN+dACgoAFclMLbXNaSaPXHLLC7GZnG
UMUAn3pLWAHTMpWZTQQhQKfXI1hROvUj
=H9GP
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to