Home > Net >  Used in supersocket FixedHeaderReceiveFilter, how to close the connection?
Used in supersocket FixedHeaderReceiveFilter, how to close the connection?

Time:10-07

Using FixedHeaderReceiveFilter analysis agreement, two problems, consult
Header GetBodyLengthFromHeader (byte [], int offset, int length)
The header, why length is always 409600, without using a configuration file, where you can set?

In GetBodyLengthFromHeader this function, to check agreement first, if does not conform to, want to close the connection here, how close?

CodePudding user response:

Could you tell me how to solve the

CodePudding user response:

Throw exceptions, exception thrown in the filter will be disconnected, and setting out the reason of error
  •  Tags:  
  • C#
  • Related