We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I start onion like this:
onion *o=onion_new(O_ONE_LOOP );
But in this mode it seems to close connection after each request. I would like to keep the connection alive. Is this possible?
thanks!
The text was updated successfully, but these errors were encountered:
Please disregard and close this issue... I figured out I could just set number of threads to 1.
onion_set_max_threads(o, 1);
That seems to work fine.
Strangely, the simple test I do of 1000 requests takes 29 seconds in O_ONE_LOOP mode and 50 seconds or more in O_THREADED mode.
Doesn't really matter why though because I really want to run in O_ONE_LOOP mode, so a good outcome.
Sorry, something went wrong.
No branches or pull requests
Hello,
I start onion like this:
onion *o=onion_new(O_ONE_LOOP );
But in this mode it seems to close connection after each request. I would like to keep the connection alive. Is this possible?
thanks!
The text was updated successfully, but these errors were encountered: