[keyserver] Add a script for triggering socket crash loop
Summary:
Linear issue: https://linear.app/comm/issue/ENG-2075/reproduce-socket-crash-loop-in-production-with-artificial-test-data
Calling this script in keyserver/ causes 1000 threads to be created under GENESIS with ashoat user and user whos id is specified as spammedUserID.
Having my physical iOS device use 3G this caused a socket crash loop.
Mind that creating 1000 threads takes about 15min.
Test Plan:
Set iOS physical device network profile to 3G and run the script in keyserver/
This was tested on 22ac9645d0eb5f83a23a8c1daae0d31ebed5a4a1 D5513
Reviewers: tomek, atul, marcin
Reviewed By: tomek
Subscribers: ashoat, abosh
Differential Revision: https://phab.comm.dev/D5530