mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
add connection padding on server side
This commit is contained in:
parent
53172a588b
commit
0aa1470e01
3 changed files with 24 additions and 4 deletions
|
@ -7,6 +7,17 @@ type ReadWriteCloserPreservesBoundary interface {
|
|||
MessageBoundaryPreserved()
|
||||
}
|
||||
|
||||
type messageBoundaryPreservedReadWriteCloser struct {
|
||||
io.ReadWriteCloser
|
||||
}
|
||||
|
||||
func (m *messageBoundaryPreservedReadWriteCloser) MessageBoundaryPreserved() {
|
||||
}
|
||||
|
||||
func ConfirmsReadWriteCloserPreservesMessageBoundary(rwc io.ReadWriteCloser) ReadWriteCloserPreservesBoundary {
|
||||
return &messageBoundaryPreservedReadWriteCloser{rwc}
|
||||
}
|
||||
|
||||
type PaddableConnection interface {
|
||||
ReadWriteCloserPreservesBoundary
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue