Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep open connection to avoid restart #14

Open
sygram opened this issue Aug 5, 2015 · 0 comments
Open

keep open connection to avoid restart #14

sygram opened this issue Aug 5, 2015 · 0 comments

Comments

@sygram
Copy link

sygram commented Aug 5, 2015

Hi there,

thanks for the script.

The only issue that i see is that at php execution end the connection object is destroyed, therefore on every new request the connection has to be opened again and this forces an arduino restart. I considered serializing a singleton that holds the connection, but things like "database connections" should be avoided for serialization. Is there anyway to keep a connection object in memory ?

Thank you very much

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant