These instructions helped me as well. We were encountering a strange error message when pushing packages either by command line or using the OctoPack within the MSBuild arguments:
Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
But we only received these messages when packages reached an arbitrary size. We could not determine if it was our network or IIS until we hit this post.
Note: within the MS documentation on the two fields in the config file (maxRequestLength and maxAllowedContentLength), the first is in kilobytes and the second is in bytes.