Commit Graph
675 Commits
Author SHA1 Message Date
Stephen Toub 12ff584dad Updating External dependencies to beta-24314-00, CoreFX to 24314-02
Commit migrated from https://github.com/dotnet/corefx/commit/be3a0f7e557a1d325fca506d04331611ead5c62f
2016-07-14 06:44:08 -04:00
dotnet-bot 5a999a28aa Updating CoreFx dependencies to beta-24313-04
Commit migrated from https://github.com/dotnet/corefx/commit/b7fb903a5318f48ff9c4e38bc941f64a5c96ec67
2016-07-13 19:59:35 +00:00
Stephen Toub e7d980fa1b Merge pull request dotnet/corefx#10020 from dotnet-bot/UpdateDependencies20160712072159
Updating CoreFx dependencies to beta-24312-04

Commit migrated from https://github.com/dotnet/corefx/commit/06120e5a3cee040268a7d0616bab5466eb091570
2016-07-12 21:28:56 -04:00
Eric St. John f7a8a6ebb5 Validate Xamarin frameworks
This adds validation for Xamarin frameworks and fixes some packages
which were not representing Xamarin correctly.


Commit migrated from https://github.com/dotnet/corefx/commit/e586f1b2f4eca793de97361aa4b981eb966d13ec
2016-07-12 14:52:53 -07:00
dotnet-bot 0ef56f02dc Updating CoreFx dependencies to beta-24312-04
Commit migrated from https://github.com/dotnet/corefx/commit/e890f759240d5632d172fe7097f7b537861d5262
2016-07-12 19:21:59 +00:00
Stephen Toub 37df888c49 Merge pull request dotnet/corefx#10009 from dotnet-bot/UpdateDependencies20160712011800
Updating CoreFx dependencies to beta-24312-03

Commit migrated from https://github.com/dotnet/corefx/commit/df5cf73c1204e1b728b7ee7ac627eeda19bf9e49
2016-07-12 14:14:07 -04:00
Jeremy Barton 18922b8087 Merge pull request dotnet/corefx#9993 from bartonjs/x509_upref
Use X509UpRef instead of X509Duplicate

Commit migrated from https://github.com/dotnet/corefx/commit/63819d9824d452de9a6e7116e193ba16249ac2ce
2016-07-12 07:52:46 -07:00
dotnet-bot cf78116d43 Updating CoreFx dependencies to beta-24312-03
Commit migrated from https://github.com/dotnet/corefx/commit/7558557df0db57e0f82a9dc3dbde0359f4454a3f
2016-07-12 13:18:00 +00:00
dotnet-bot bd012d6ad4 Updating CoreFx dependencies to beta-24312-02
Commit migrated from https://github.com/dotnet/corefx/commit/f30e5cf82ba3ec24aa6973dc7c78ef9a95cbe240
2016-07-12 07:20:30 +00:00
Jeremy Barton a903dcbcd0 Add CryptoNative_X509UpRef
Use X509UpRef instead of X509Duplicate

X509Duplicate copies the certificate data into new memory, but none of the
callers needed copy semantics, just ensuring that the native components
which also are using the same memory don't unexpectedly free the object.

Protection from early/double-free is what the native reference count field is
for, so use UpRef instead of Duplicate.

Since we are currently targeting OpenSSL 1.0.x X509Upref adds to
references directly, X509_up_ref does not exist in the 1.0.x ABI.

Microbenchmark:
Cloning a certificate 1000 times by cert.Handle, measuring maximum resident set:
X509Duplicate (before): 48213 +/- 1501KB
X509UpRef (after): 39208 +/- 1021KB
Memory reduction: 9005 +/- 1816KB


Commit migrated from https://github.com/dotnet/corefx/commit/8f5eac55eb498c3c94f5a89655f4d7ad79a8711a
2016-07-11 16:02:55 -07:00
Stephen Toub 4f37d90ee0 Merge pull request dotnet/corefx#9963 from dotnet-bot/UpdateDependencies20160711071459
Updating CoreFx dependencies to beta-24311-02

Commit migrated from https://github.com/dotnet/corefx/commit/5473d68be9ca1398c42a441c1a0e8e6b0b1328db
2016-07-11 10:15:02 -04:00
sichbo c3bfb4e92f Ensure Unix SslStream sends intermediate CA certs when required. (dotnet/corefx#9814)
Commit migrated from https://github.com/dotnet/corefx/commit/02ea17c713e8c67c98cced71731a72c724e26135
2016-07-11 06:52:28 -04:00
dotnet-bot d31b8e5f73 Updating CoreFx dependencies to beta-24311-02
Commit migrated from https://github.com/dotnet/corefx/commit/72696340840e514ffdd98a8713c9b8079d2effcb
2016-07-11 07:14:59 +00:00
Stephen Toub ec69f1708e Updating CoreFx dependencies to beta-24310-04
Commit migrated from https://github.com/dotnet/corefx/commit/9affe80f9323d61d13a5215aa3f1cda86a0c15a1
2016-07-10 18:49:23 -04:00
dotnet-bot b4ea6c2de6 Updating CoreFx dependencies to beta-24309-02
Commit migrated from https://github.com/dotnet/corefx/commit/c04e71ddd339545bd17521105fed6e4c530a2c85
2016-07-09 07:14:18 +00:00
Karthik Rajasekaran ae999c773c Add TestTFMs for filtering to builds files
Commit migrated from https://github.com/dotnet/corefx/commit/35cdee49419f8b06f523f00f8e183fcfb3eac065
2016-07-07 15:55:20 -07:00
dotnet-bot 9af8ae2aac Updating CoreFx dependencies to beta-24307-04
Commit migrated from https://github.com/dotnet/corefx/commit/49cf43520de2cecd24bdce713bea58e6becf8cdc
2016-07-07 19:35:15 +00:00
dotnet-bot 5affda8d6b Updating CoreFx dependencies to beta-24303-04
Commit migrated from https://github.com/dotnet/corefx/commit/1bb03180b6dae7375339287be60291a7495fd3ab
2016-07-03 19:12:20 +00:00
dotnet-bot e9863aaf4c Updating CoreFx dependencies to beta-24303-02
Commit migrated from https://github.com/dotnet/corefx/commit/9f38e4271c764e8fcc1940a31302f46745185996
2016-07-03 08:35:58 -04:00
dotnet-bot 0fbe9abf53 Updating CoreFx dependencies to beta-24230-04
Commit migrated from https://github.com/dotnet/corefx/commit/d24bd6d43c863da16c54f50b0b387cad6396a672
2016-06-30 19:15:52 +00:00
dotnet-bot f19b0c8680 Updating CoreFx dependencies to beta-24230-03
Commit migrated from https://github.com/dotnet/corefx/commit/58a9e3afd19953225f9f7bfe0814c0def45ae550
2016-06-30 13:16:21 +00:00
dotnet-bot 1a720f9f47 Updating CoreFx dependencies to beta-24230-02
Commit migrated from https://github.com/dotnet/corefx/commit/8b62556c51a70fac4cb88d0ba8994057d02e0241
2016-06-30 07:14:29 +00:00
dotnet-bot 99341280bf Updating CoreFx dependencies to beta-24230-01
Commit migrated from https://github.com/dotnet/corefx/commit/e7ba9e9d1090b37064c61fe67edac3a5b43ff092
2016-06-30 01:15:21 +00:00
Karthik Rajasekaran 5c93b350d3 Add NugetTargetMoniker to test projects and update remaining project references to pkgproj
Commit migrated from https://github.com/dotnet/corefx/commit/13e03705ced065850dc65900fccfd930426e87d7
2016-06-29 12:30:05 -07:00
dotnet-bot 57c266e8b0 Updating CoreFx dependencies to beta-24229-02
Commit migrated from https://github.com/dotnet/corefx/commit/f0c84d469537e9388fdf0df6b976ac7de9480fd9
2016-06-29 07:14:28 +00:00
dotnet-bot 68578ac950 Updating CoreFx dependencies to beta-24229-01
Commit migrated from https://github.com/dotnet/corefx/commit/ffd2e90a31edfae15310c2b4ede41cf5d39282ea
2016-06-29 01:15:47 +00:00
Cristian Pop dab55cf557 Merge pull request dotnet/corefx#9715 from CIPop/test
Adding multi-machine installation scripts and unifying test configuration.

Commit migrated from https://github.com/dotnet/corefx/commit/32b96925efce0dde416103862d0f37877918ec94
2016-06-28 14:08:34 -07:00
Cristian Pop 7a3d76b180 Adding multi-machine scripts and unifying configuration.
Commit migrated from https://github.com/dotnet/corefx/commit/c354b2d44f6988a20a9f7be4a1b996ef7fbc873a
2016-06-28 12:38:07 -07:00
dotnet-bot c269e0b6f3 Updating CoreFx dependencies to beta-24228-04
Commit migrated from https://github.com/dotnet/corefx/commit/49cacc2fede602b31ad615fe5afc48c72bab7c75
2016-06-28 19:17:39 +00:00
Stephen Toub 06d54ffcb6 Updating CoreFx dependencies to beta-24228-03, CoreCLR to beta-24228-02
Commit migrated from https://github.com/dotnet/corefx/commit/e640352cc92af7b2ebcb9d512f0ea446f1fbdae8
2016-06-28 13:37:05 -04:00
Stephen Toub 553661857c Updating CoreFx dependencies to beta-24228-01
Commit migrated from https://github.com/dotnet/corefx/commit/341ba956fb9732a630e95d411a47db2f25059054
2016-06-27 22:17:48 -04:00
dotnet-bot aacba58ff5 Updating CoreFx dependencies to beta-24227-04
Commit migrated from https://github.com/dotnet/corefx/commit/d735e4ff358f7a88fc0c8e9be796c685f111f1b5
2016-06-27 20:44:43 -04:00
dotnet-bot 2fdac00d96 Updating CoreFx dependencies to beta-24227-03
Commit migrated from https://github.com/dotnet/corefx/commit/46553ef5796647cf7f90bf128b97e13331f003cd
2016-06-27 13:18:15 +00:00
Stephen Toub 73e5845a47 Update dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/5a6311687ee04bc625a220f83374ecd7ac78ae98
2016-06-27 07:00:13 -04:00
Stephen Toub 2e4305c696 Updating CoreFx dependencies to beta-24227-01
Commit migrated from https://github.com/dotnet/corefx/commit/b948f02380e97704e01ae4ebe71d786a3a9f72b3
2016-06-26 22:31:14 -04:00
dotnet-bot 448f29e87a Updating CoreFx dependencies to beta-24226-04
Commit migrated from https://github.com/dotnet/corefx/commit/af366060d798874f1eead8de1959ff122807df6a
2016-06-26 17:35:42 -04:00
dotnet-bot fced012d5d Updating CoreFx dependencies to beta-24226-03
Commit migrated from https://github.com/dotnet/corefx/commit/6c4ecdb7ce67800d1a7aa3e9192f0bcf12d31a50
2016-06-26 13:14:22 +00:00
Stephen Toub 30be06c3c1 Update depencies, corefx to 226-02 and coreclr to 226-01
Commit migrated from https://github.com/dotnet/corefx/commit/10ae0d632b8f36458051118e5561f72f4a69b84e
2016-06-26 07:20:52 -04:00
Stephen Toub 303c684410 Updating CoreFx dependencies to beta-24225-03
Commit migrated from https://github.com/dotnet/corefx/commit/f61cc53a2f1053118d5270e9ff3b72e2c6624992
2016-06-25 19:01:45 -04:00
dotnet-bot ed53909106 Updating CoreFx dependencies to beta-24225-02
Commit migrated from https://github.com/dotnet/corefx/commit/6978404cd54fe063b7482718c6dab979b5011792
2016-06-25 07:13:31 +00:00
Stephen Toub 36d951ad6d Merge pull request dotnet/corefx#9665 from stephentoub/fix_contentlength
Fix HttpRequestMessage reuse handling in HttpClientHandler on Unix

Commit migrated from https://github.com/dotnet/corefx/commit/313cf2a5c883dd3cc73cb382a465ed2f9f70997c
2016-06-24 17:41:22 -04:00
Stephen Toub 50a73e1779 Fix HttpRequestMessage reuse handling in HttpClientHandler on Unix
HttpRequestMessages are meant to be used for a single request.  However, that checking is done by HttpClient rather than by HttpClientHandler.  As a result, if code bypasses HttpClient, e.g. by using HttpMessageInvoker or by using a custom HttpMessageHandler sitting between the HttpClient and the HttpClientHandler, the same HttpRequestMessage can be used multiple times without an exception being thrown warning of the invalid usage.  And on Windows, things happen to work, but with our Unix implementation was never expecting this scenario and doesn't work well with it:
- The handler is explicitly disposing of the request content stream rather than leaving that up to the request content's disposal to handle.
- The handler is removing the Content-Length header from the request message content, as a simple way to avoid overriding the Content-Length header that libcurl itself may send based on previous configuration.
- The handler is using ReadAsStreamAsync to get the request stream to send, but ReadAsStreamAsync caches the returned stream, so if the same request message is reused with the same Content, the stream will have already advanced to the end of the stream, and when the message gets reused, we won't have content to send.

This commit fixes that:
- We now don't dispose the request content stream.  That'll be left up to the request content's disposal.
- We now don't remove the ContentLength header from the request message.  We instead just check as we're writing out the headers whether the header is Content-Length, skipping it if it is.
- We now store the original position of a seekable stream that's provided to us, and at the end of the request, rather than disposing of the stream, we rewind to the original position if it exists.  (If the stream isn't seekable, reusing the request message wouldn't be possible anyway.)

This last point also fixes another theoretical issue.  When libcurl wants to go back to the beginning of the stream (e.g. in a redirect scenario where it needs to rewind), it asks us to seek back to the beginning.  We're currently seeking back to the exact position asked for.  But the stream may have come in to us already advanced beyond 0, in which case we need to seek back to the requested offset plus that original position rather than just the requested offset.

And in doing this, I noticed that we were inadvertently allowing a set of closure/delegate allocations due to inadvertently using some captured state in a place where we were trying to avoid that.  I fixed that as well.

We were also marking everything complete before we'd cleaned up all resources, which meant that any failures from such cleanup would go unnoticed.  I've fixed that to ensure we clean up all state before we officially declare the async operation done.


Commit migrated from https://github.com/dotnet/corefx/commit/650cb2698f02635ea69da3ec9637f6ad9e7229c5
2016-06-24 09:23:57 -04:00
dotnet-bot 1c493739ac Updating CoreFx dependencies to beta-24224-02
Commit migrated from https://github.com/dotnet/corefx/commit/57f7571be7a10ad5c11b5a93a4fcb5f42a656047
2016-06-24 07:14:41 +00:00
dotnet-bot 364183e648 Updating CoreFx dependencies to beta-24223-09
Commit migrated from https://github.com/dotnet/corefx/commit/7d22459ac2c92ed931dea3e0f90b16351c254e4b
2016-06-23 22:06:56 +00:00
dotnet-bot be169e7e65 Updating CoreFx dependencies to beta-24223-03
Commit migrated from https://github.com/dotnet/corefx/commit/de7fe45c006d4079d458e595543189d2b4dad4f2
2016-06-23 13:17:10 +00:00
dotnet-bot f66f1846f1 Updating CoreFx dependencies to beta-24222-04
Commit migrated from https://github.com/dotnet/corefx/commit/c202a00f9b3994ebf2387490f5fec9340820071c
2016-06-22 19:11:51 +00:00
Wes Haggard 3b7f4610ca Update S.T.RegularExpressions to version 4.2.0
Commit migrated from https://github.com/dotnet/corefx/commit/9ce507c4f5c570619709c051573fb65d81c63977
2016-06-22 09:39:30 -07:00
dotnet-bot c1d91d4777 Updating CoreFx dependencies to beta-24222-03
Commit migrated from https://github.com/dotnet/corefx/commit/087ec74b9e436299974dce655741a3dcc98f5d1c
2016-06-22 13:08:58 +00:00
dotnet-bot 5cab5e61b9 Updating CoreFx dependencies to beta-24221-04
Commit migrated from https://github.com/dotnet/corefx/commit/82aa3ea6236d6990a50770fb77b79ffb4e06c0b5
2016-06-21 18:25:20 +00:00
dotnet-bot 4609395f97 Updating CoreFx dependencies to beta-24221-03
Commit migrated from https://github.com/dotnet/corefx/commit/6e72d3c127cae0a175c63dc942b8c7d8ac5da38b
2016-06-21 13:14:17 +00:00