Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp @ 4451:f4dbdb2dcba6
new configuration option "MaximumPduLength" to tune the maximum PDU length
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 18 Jan 2021 14:51:52 +0100 |
parents | d9473bd5ed43 |
children | 9c070a34de18 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp Thu Jan 14 09:13:29 2021 +0100 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp Mon Jan 18 14:51:52 2021 +0100 @@ -255,6 +255,7 @@ CommandDispatcher* AcceptAssociation(const DicomServer& server, T_ASC_Network *net, + unsigned int maximumPduLength, bool useDicomTls) { DcmAssociationConfiguration asccfg; @@ -264,9 +265,7 @@ OFString sprofile; OFString temp_str; - cond = ASC_receiveAssociation(net, &assoc, - /*opt_maxPDU*/ ASC_DEFAULTMAXPDU, - NULL, NULL, + cond = ASC_receiveAssociation(net, &assoc, maximumPduLength, NULL, NULL, useDicomTls /*opt_secureConnection*/, DUL_NOBLOCK, 1); @@ -694,7 +693,7 @@ } IApplicationEntityFilter* filter = server.HasApplicationEntityFilter() ? &server.GetApplicationEntityFilter() : NULL; - return new CommandDispatcher(server, assoc, remoteIp, remoteAet, calledAet, filter); + return new CommandDispatcher(server, assoc, remoteIp, remoteAet, calledAet, maximumPduLength, filter); } @@ -703,6 +702,7 @@ const std::string& remoteIp, const std::string& remoteAet, const std::string& calledAet, + unsigned int maximumPduLength, IApplicationEntityFilter* filter) : server_(server), assoc_(assoc),