Adding fields to ValueType can mess with sub class layouts. Fixes #30060.
…zed before freeing them.
… Should fix bug #19697. Should fix bug #19697. 1. Preserve ChannelFactory so that it can retrieve its ServiceEndpoint's Binding's Timeout values. 2. Use DefaultCommunicationTimeouts.SendTimeout instead of ReceiveTimeout. It was either written when I don't understand the API well or might be different in duplex channel (who cares? nothing supports it now and we will be switching to referencesource). It is going to be my final contribution to WCF old codebase. Bye bye forever.
…Type after the import of the MS reference source version.
Place an upper limit on files loaded in the coverage profiler to 128k. If the system suppression file exceeds that (it is currently only 3k), then there's some problem and the profiler will exit. For other user files passed on the commandline, we print a warning message and ignore them.
…terferes with other tests.
What happens here is the following: When using chunked encoding, the ChunkStream sometimes mixes async and sync requests on the underlying stream. The async calls work great - just the sync ones create problems. In this particular bug, the server returns two ApplicationData records - one big one and then a smaller one. The chunk parser requests a sync read of 1024 bytes which then result in a series of sync reads on the underlying network stream. The first two or three network reads don't return enough data to fill the huge ApplicationData record - the last one then returns so much data that it fills both the remainder of the first record and the entire second one. If the caller issued a second sync read, then the implementation would catch this - but the async code path does not.
Instead of importing the source from referencesource, the algorithm has been reimplemented in our version. This is because their implementation uses multiple internal calls that do not need to be, and they are simple enough to just be reimplemented in managed code.