Skip to content

Mixed up parameters MaxReceivedMessageSize and MaxBufferSize #833

@torgashov

Description

@torgashov

We have CoreWCF service (CoreWCF.Http 1.1.0) with configuration:
NetTcpBinding
"MaxReceivedMessageSize": 214748364,
"MaxBufferSize": 524288,
"MaxBufferPoolSize": 524288

Wcf client call CoreWCF service method with parameters:
NetTcpBinding
"MaxReceivedMessageSize": 214748364,
"MaxBufferSize": 524288,
"MaxBufferPoolSize": 524288

In results we got error:
QuotaExceededException: Maximum message size quota for incoming messages has been exceeded (524288). To increase the quota, use the MaxReceivedMessageSize property of the corresponding binding element.

When i change client with configuration to:
NetTcpBinding
"MaxReceivedMessageSize": 524288,
"MaxBufferSize": 214748364,
"MaxBufferPoolSize": 524288
In result we got success response.

It seems parameters MaxReceivedMessageSize and MaxBufferSize mixed up in CoreWCF service request validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions