Skip to content

Conversation

@drgrice1
Copy link
Member

When the gateway test option "Number of Graded Submissions per Test" is set something more than one or even worse to 0, then the javascript auto submit submits continuously until all submissions are used up or the full grace period expires. That can crash a server.

To test this create a gateway quiz and just use the default setting of 0 for that option. I recommend setting the test time limit to something small (I used 0.05 for 3 seconds), and setting $gatewayGracePeriod = 11; in localOverrides.conf. When the time is up on the develop branch you will see the quiz start submitting, and continue to do so for the next 10 seconds and the full gatewayGracePeriod is expired.

With this pull request, you will see the test only submit once.

When the gateway test option "Number of Graded Submissions per Test" is
set something more than one or even worse to 0, then the javascript auto
submit submits continuously until all submissions are used up or the
full grace period expires.  That can crash a server.

To test this create a gateway quiz and just use the default setting of 0
for that option.  I recommend setting the test time limit to something
small (I used 0.05 for 3 seconds), and setting `$gatewayGracePeriod = 11;`
in localOverrides.conf.  When the time is up on the develop branch you
will see the quiz start submitting, and continue to do so for the next
10 seconds and the full gatewayGracePeriod is expired.

With this pull request, you will see the test only submit once.
Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as #1953

@pstaabp pstaabp merged commit 6410025 into openwebwork:main Apr 27, 2023
@drgrice1 drgrice1 deleted the bugfix/prevent-gateway-multi-auto-submit-hotfix branch April 27, 2023 18:07
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

Successfully merging this pull request may close these issues.

2 participants