Skip to content

Commit

Permalink
Merge pull request #3 from flashbots/maxpayloadbytes-2mb
Browse files Browse the repository at this point in the history
make PayloadMaxBytes 2MB
  • Loading branch information
metachris authored Feb 15, 2023
2 parents 215e2ab + d57214e commit d4d171c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var (
RequestMaxTries = GetEnvInt("RETRIES_MAX", 3) // 3 tries means it will be retried 2 additional times, and on third error would fail
MaxQueueItemsHighPrio = GetEnvInt("ITEMS_HIGHPRIO_MAX", 0) // Max number of items in high-prio queue. 0 means no limit.
MaxQueueItemsLowPrio = GetEnvInt("ITEMS_LOWPRIO_MAX", 0) // Max number of items in low-prio queue. 0 means no limit.
PayloadMaxBytes = GetEnvInt("PAYLOAD_MAX_KB", 1536) * 1024 // Max payload size in bytes. If a payload sent to the webserver is larger, it returns "400 Bad Request".
PayloadMaxBytes = GetEnvInt("PAYLOAD_MAX_KB", 2048) * 1024 // Max payload size in bytes. If a payload sent to the webserver is larger, it returns "400 Bad Request".

RequestTimeout = time.Duration(GetEnvInt("REQUEST_TIMEOUT", 5)) * time.Second // Time between creation and receive in the node worker, after which a SimRequest will not be processed anymore
ServerJobSendTimeout = time.Duration(GetEnvInt("JOB_SEND_TIMEOUT", 2)) * time.Second // How long the server tries to send a job into the nodepool for processing
Expand Down

0 comments on commit d4d171c

Please sign in to comment.