рабочий вариант, но скороть 10 МБит
This commit is contained in:
@@ -523,7 +523,7 @@ func (s *RemoteWorkspaceFrameProbeSink) AcceptRemoteWorkspaceFrameBatchProbe(_ c
|
||||
AckedFrames: acceptedFrames,
|
||||
Backpressure: false,
|
||||
DropPolicy: "drop_droppable_overflow_ack_accepted",
|
||||
DeliverySequence: s.sequence,
|
||||
DeliverySequence: uint64(s.sequence),
|
||||
DeliveredAt: now.Format(time.RFC3339Nano),
|
||||
}
|
||||
s.last = receipt
|
||||
@@ -695,6 +695,24 @@ func isValidRemoteWorkspaceAdapterSessionID(adapterSessionID string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func isValidRemoteWorkspaceAdapterMailboxConsumerID(consumerID string) bool {
|
||||
consumerID = strings.TrimSpace(consumerID)
|
||||
if consumerID == "" || len(consumerID) > 128 {
|
||||
return false
|
||||
}
|
||||
for _, ch := range consumerID {
|
||||
switch {
|
||||
case ch >= 'a' && ch <= 'z':
|
||||
case ch >= 'A' && ch <= 'Z':
|
||||
case ch >= '0' && ch <= '9':
|
||||
case ch == '-', ch == '_', ch == '.', ch == ':':
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func actionToAdapterSessionState(action string) string {
|
||||
switch action {
|
||||
case "expire":
|
||||
|
||||
Reference in New Issue
Block a user