message-size-increase #3

Merged
sashakoshka merged 227 commits from message-size-increase into main 2025-09-07 19:27:38 -06:00
Showing only changes of commit e4f13a4142 - Show all commits

View File

@ -17,6 +17,7 @@ type Party bool; const (
) )
type a struct { type a struct {
sizeLimit int
underlying net.Conn underlying net.Conn
party Party party Party
transID int64 transID int64
@ -87,6 +88,10 @@ func (this *a) AcceptTrans() (Trans, error) {
} }
} }
func (this *a) SetSizeLimit(limit int) {
this.sizeLimit = limit
}
func (this *a) unlistTransactionSafe(id int64) { func (this *a) unlistTransactionSafe(id int64) {
this.transLock.Lock() this.transLock.Lock()
defer this.transLock.Unlock() defer this.transLock.Unlock()