Commit Graph
251 Commits
Author SHA1 Message Date
dotnet-bot 6883e89fc3 Updating CoreFX dependencies to rc3-24008-00
Commit migrated from https://github.com/dotnet/corefx/commit/30b74738cdac9c75a2dd165d339f206b1070f3cd
2016-04-08 06:40:37 +00:00
dotnet-bot 0f0193e356 Updating CoreFX dependencies to rc3-24007-00
Commit migrated from https://github.com/dotnet/corefx/commit/d9fdf25de0e1cf35219a26d4f840302e5379f292
2016-04-07 05:37:12 +00:00
dotnet-bot be7ca463ae Updating CoreFX dependencies to rc3-24006-00
Commit migrated from https://github.com/dotnet/corefx/commit/aff79bf3fa8ce8c13b6084d82aca30e534142b81
2016-04-06 05:21:19 +00:00
dotnet-bot 8c6d7acd5d Updating CoreFX dependencies to rc3-24005-00
Commit migrated from https://github.com/dotnet/corefx/commit/afbf526ac0fae250fc47623f2c43d2caa1abb803
2016-04-05 06:23:55 -04:00
dotnet-bot 9f65b1e1ef Updating CoreFX dependencies to rc3-24004-00
Commit migrated from https://github.com/dotnet/corefx/commit/9fd2c8863f2be58ee5d1431f0c658de61e991551
2016-04-04 20:19:10 -04:00
Lakshmi Priya Sekar 2a3abf12b4 Update xunit.netcore.extensions to latest.
Commit migrated from https://github.com/dotnet/corefx/commit/a7bb9eb3327f5cc791d39b4cff764dd7dd29fda5
2016-04-01 14:04:56 -07:00
Jonathan Miller 0e43cc624e Merge pull request dotnet/corefx#6572 from sokket/builds
Adding builds files to the test projects

Commit migrated from https://github.com/dotnet/corefx/commit/e8326c3dab65e2e8eac466f346a9693788d41ca9
2016-03-31 11:41:43 -07:00
Jonathan Miller 7c2ce6913c Adding builds files for the test projects
Commit migrated from https://github.com/dotnet/corefx/commit/752599494fce80b5d0059a9090fdc010d8c7f45b
2016-03-31 10:46:26 -07:00
stephentoub 025ea3f97f Update packages to rc3-23931-00
Commit migrated from https://github.com/dotnet/corefx/commit/e421dd9c41c308f83511e350c1e407d1f728ba78
2016-03-31 08:26:49 -04:00
stephentoub dabfe7fc9d Update packages to rc3-23930-00
Commit migrated from https://github.com/dotnet/corefx/commit/64a2b6c70977e33b4e8fb90e8f5d3b019b843e61
2016-03-30 07:30:59 -04:00
stephentoub aa64955b41 Update packages to rc3-23925-00
Commit migrated from https://github.com/dotnet/corefx/commit/268eea1b538fa80a0042a1eabc4e51c84473d7b0
2016-03-25 20:23:47 -04:00
stephentoub 11bb3f3c94 Remove and replace some stale [ActiveIssue(...)]
Remove some stale [ActiveIssues] where the tests now pass.

Replace some others with [PlatformSpecific], where the behavior is deemed to be "by design" / accepted.

And update a few issue numbers.


Commit migrated from https://github.com/dotnet/corefx/commit/9c13b0c9389189d86fb2d270c28660946b3ae80c
2016-03-25 15:24:49 -04:00
stephentoub 0de8ee2b33 Update packages to rc3-23923
Commit migrated from https://github.com/dotnet/corefx/commit/123180cde4aadbed151ffbc00c09b85b7532da68
2016-03-23 11:56:57 -04:00
stephentoub 336d513a7e Remove workaround P2P refs from System.IO.Pipes.Tests
These P2P references had been added temporarily as a workaround when adding some functionality to one of the native shims.  Now that everything is in the packages, I'm removing the workaround.


Commit migrated from https://github.com/dotnet/corefx/commit/36e4354760d731e20f3434079b7adcce08844e18
2016-03-22 10:51:08 -04:00
stephentoub b60997fa74 Update packages to rc3-23921
Commit migrated from https://github.com/dotnet/corefx/commit/3eb508d41d476e4ca0c74d106584c7a7f0d51a17
2016-03-21 12:10:10 -04:00
Stephen Toub 999485807a Merge pull request dotnet/corefx#7074 from ericstj/fixUnixRestore
Fix restore on Unix

Commit migrated from https://github.com/dotnet/corefx/commit/5acc584b0564ae2031a7a267cd23769d2cb7f133
2016-03-20 14:14:12 -04:00
Eric St. John e2b7871e19 Fix restore on Unix
The pipe tests were using NativeOverlapped which still doesn't have a
not-supported impl.  Add a dummy implementation and don't try to
restore it for Unix.

Two other NetCore50 projects were restoring a lower version of S.R.E
that didn't contain an impl for NetCore50.


Commit migrated from https://github.com/dotnet/corefx/commit/0926ca688f4c935cd979f3d728d3b70f7c5072de
2016-03-20 09:15:11 -07:00
Jon Hanna 957a5b7e59 Fix multiple typos
Commit migrated from https://github.com/dotnet/corefx/commit/defd9770abc06cdf5ed4fa10b01945544598af0b
2016-03-20 14:40:42 +00:00
Jon Hanna 13b30e5b37 Fix multiple typos
Commit migrated from https://github.com/dotnet/corefx/commit/efd5b13b90c59c0d75bec38a9ef938e529061b5c
2016-03-20 01:28:47 +00:00
Eric St. John 6aeccb0bae Fix tests to restore using the latest packages
We removed the lifting from the lineup so tests should reference the
latest packages in order to ensure an implementation is available.

The latest pacakges exclude implementation dependencies so I needed to
add these to projects that were depending on them coming in transitively.


Commit migrated from https://github.com/dotnet/corefx/commit/bef9061fd1238adf47b864d8924d121e4134465b
2016-03-19 08:01:11 -07:00
Eric St. John d28646e6b3 Fix restore errors in source projects
The latest drop of packages no longer includes lifting entries in the
lineup.  This causes errors when restoring for a concrete TFM and no
implementation assembly is in the packages.

I addressed this issue two ways:
1. In places where we were targeting a concrete TFM but packaging as
 NETStandard, just target NETStandard instead.
2. In places where we were targeting a concrete TFM but that packages
were missing the implementation on that TFM, update the reference to
newer package version where implementation is available.


Commit migrated from https://github.com/dotnet/corefx/commit/dfb30176c6056f5b3427515c4444a9dc31b9ba4f
2016-03-19 08:01:10 -07:00
Eric St. John ff75367f93 Update packages to rc3-23918
Commit migrated from https://github.com/dotnet/corefx/commit/d3d217b2ab336b862c27a3e605e32dc0c0a6d472
2016-03-19 08:01:09 -07:00
stephentoub 617bdb272c Fix test interaction between inheritable pipes and launched processes
Commit migrated from https://github.com/dotnet/corefx/commit/7b601bd90ccb1ece691926b0b1ef73dc1fbab9f1
2016-03-18 11:23:02 -04:00
stephentoub 32f9f9a044 Make Unix domain socket path handling in Pipes more robust
- Rather than hardcoding offsets and lengths related to the size of the native struct sockaddr_un's, get it from the native code.  This will help with future platform support.
- With that info, allow the path to be as long as the platform will support, rather than capping it at a hardcoded value.
- Throw a meaningful exception when too long a length is specified.


Commit migrated from https://github.com/dotnet/corefx/commit/12b51c6bf153cc237b251a4e264d5e7c0ee84a33
2016-03-17 17:50:51 -04:00
stephentoub 027262234f Fix a pipes test to only do some checks on Windows
With named pipes now on sockets, one end disconnecting doesn't instanteously break the pipe on all platforms.


Commit migrated from https://github.com/dotnet/corefx/commit/079520b05a2d18483d7c088fa3693fb0d62da915
2016-03-16 20:46:13 -04:00
stephentoub 45f41cca3a Fix NamedPipe*Stream.OutBufferSize on OS X
PipeStream.In/OutBufferSize were both using Socket.ReceiveBufferSize.  Not only could the in and out sizes be configured differently for a named pipe, for a one-directional pipe we shutdown the opposite direction of the socket when it's connected, and on OSX that results in that shutdown direction's buffer eventually (but not synchronously) becoming 0.  This was leading to spurious failures in buffer size tests on OS X when trying to get the OutBufferSize of a PipeDirection.Out stream, as we'd shutdown the receive side.

This commit overrides InBufferSize and OutBufferSize on NamedPipe*Stream to return ReceiveBufferSize and SendBufferSize, respectively.  This fixes the issue of returning the wrong buffer size if they happen to be different, avoids the OSX shutdown issue, and also avoids an issue where we'd end up trying to get the fcntl pipe size on the socket handle if the properties were used on an unconnected server stream.


Commit migrated from https://github.com/dotnet/corefx/commit/6fbf347269340380e24067e83628195a89b0b878
2016-03-16 13:24:31 -04:00
Stephen Toub fc4c3f9094 Merge pull request dotnet/corefx#6941 from stephentoub/enable6806
Re-enable ManyConcurrentOperations pipes tests

Commit migrated from https://github.com/dotnet/corefx/commit/8870a29ca46de45ee1a888b4d41be68949966e12
2016-03-16 13:12:06 -04:00
stephentoub 013c58acd7 Re-enable ManyConcurrentOperations pipes tests
Commit migrated from https://github.com/dotnet/corefx/commit/6c7283e3eb5f147bad6e266121010d837b7c1b48
2016-03-15 22:39:54 -04:00
stephentoub 03ec2ce86d Shorten named pipe names in System.IO.Pipes.Tests
Commit migrated from https://github.com/dotnet/corefx/commit/4010973427e4a9e0647e9369a902eb3ceffd5bf7
2016-03-15 20:42:39 -04:00
Eric St. John b134ef2308 Ensure stable assembly ref versions.
Make sure that all of the projects that consume API versions
decremented by
https://github.com/dotnet/corefx/pull/6902/commits/dotnet/corefx@716bb82ed9eb75a5a1e9beb0472d403177cff53f
reference the decremented assembly version.


Commit migrated from https://github.com/dotnet/corefx/commit/fe5b65ef7eaf4ede18e6bf47fc0bbdd79402b5b5
2016-03-15 13:57:09 -07:00
Stephen Toub 6718daa31b Merge pull request dotnet/corefx#6898 from stephentoub/pipe_coverage_test
Add a Pipes test for disconnecting during async operations

Commit migrated from https://github.com/dotnet/corefx/commit/62322449ea94e5ae6bfe279765044975087624ee
2016-03-15 12:03:29 -04:00
stephentoub d8f5ece893 Add a Pipes test for disconnecting during async operations
Commit migrated from https://github.com/dotnet/corefx/commit/583fecc9300f730a4ba77d06485aaba1d22d35a3
2016-03-15 00:08:56 -04:00
stephentoub 2437991f49 Address PR feedback and fix several reliability issues
Also add/update a few tests.


Commit migrated from https://github.com/dotnet/corefx/commit/c39ac9a68d17c27c24798ed1005cc8ed7063803e
2016-03-14 20:10:29 -04:00
stephentoub a8354614c1 Implement NamedPipe*Stream on Unix on Unix domain sockets
Today, NamedPipeServer/ClientStream are implemented on top of FIFOs, aka named pipes.  There are some unfortunate limitations to this that are causing problems for typical usage of NamedPipeServer/ClientStream:
- FIFOs can be constructed as both read and write (i.e. InOut), but a writer can then immediately read what was written.  In other words, whereas one might expect there two be two data channels, one in each direction, there's only one that everyone can read and write from.
- FIFOs can be connected to by any number of readers and writers, which has the effect of meaning a reader doesn't unblock when a writer disconnects, because there may be another writer in the future.

To address these significant limitations, this commit moves NamedPipeServer/ClientStream to be built instead on top of Unix domain sockets.  Unix domain sockets are an IPC mechanism for local communication using the sockets model, and we have support for it via System.Net.Sockets.

Both of the aforementioned problems are addressed by this change.  A few other positive outcomes:
- The participants on each side of the connection can get the credentials of the other side, so GetImpersonatedUserName is now implemented.
- Our Socket implementation has a good async implementation, so we can use it for all of the async operations exposed rather than queueing a work item that then blocks doing the synchronous operation.

There are a few downsides, but they're worth the tradeoff:
- FIFOs have the same general blocking behavior as anonymous pipes and as named pipes on Windows: a call to Write doesn't complete until an associated Read comes along.  That's not the case with Unix domain sockets, where a Write typically just deposits the data into a buffer.  Writes on a socket only block when the buffer is full.
- Unix domain sockets are considered to be a bit slower than FIFOs.
- Changing the buffer size of a FIFO impacts the whole FIFO, whereas changing the buffer size for a socket impacts just that end of the socket.

There continue to be several features that we don't support, e.g. message transmission, max number of servers, etc.


Commit migrated from https://github.com/dotnet/corefx/commit/fcc5cc9d78b84958394395611ebad9e7be222658
2016-03-14 20:07:41 -04:00
stephentoub eb0d6b6764 Remove InterprocessTests project
I'd initially created this thinking we'd have a bunch of different test suites for different scenarios, but it hasn't really panned out that way.  In the meantime, having some tests for different projects not part of that project's test suite makes certain things more difficult, like dealing with changing dependencies, understanding code coverage, etc.  I'm simply redistributing these tests to their propery homes and deleting the consolidated project.


Commit migrated from https://github.com/dotnet/corefx/commit/9baeb48d0027027eb75cc31b9ee52047d2f9f0e0
2016-03-11 20:43:12 -05:00
Christopher Costa aab016344e Fat package conversions
Commit migrated from https://github.com/dotnet/corefx/commit/be08afd9701053f5f9369762db58b87c8ca9559f
2016-03-10 16:15:19 -08:00
stephentoub d5e591e45a Update packages to rc3-23910
Commit migrated from https://github.com/dotnet/corefx/commit/ab3948bfab039aac2afc1b521883425a171b982d
2016-03-10 09:37:40 -05:00
Eric St. John 938606505c Make windows-specific projects restore for windows
Many projects were using windows-specific packages.  These projects
need to restore for windows specifically to avoid compat errors during
restore.


Commit migrated from https://github.com/dotnet/corefx/commit/b117971dd2393aaa0ef465b881e35e785820bab6
2016-03-09 17:08:45 -08:00
Eric St. John 04a73fbed6 Update packages to rc3-23908
Commit migrated from https://github.com/dotnet/corefx/commit/86a230845c4f1840dcb9b52165c6976fad5b5868
2016-03-08 08:46:50 -08:00
Stephen Toub e6e9885a6d Merge pull request dotnet/corefx#6731 from stephentoub/perms_np
Fix permissions when creating a FIFO in a named pipe

Commit migrated from https://github.com/dotnet/corefx/commit/9926f5ab4d4813de17b8da4e1003b573b718fc42
2016-03-07 19:07:04 -05:00
Stephen Toub 194def3e78 Merge pull request dotnet/corefx#6730 from ericstj/stephentoub-update_packages
Update packages to rc3-23907

Commit migrated from https://github.com/dotnet/corefx/commit/ba0b266b705f23c709bd81890e13be5395d9f5c7
2016-03-07 18:47:27 -05:00
stephentoub 9dc568b44c Fix permissions when creating a FIFO in a named pipe
There's no need for execute permissions on a FIFO, just read and write permissions.


Commit migrated from https://github.com/dotnet/corefx/commit/2354ac190a9dcac812ea2008e0f861965524c5f1
2016-03-07 16:39:49 -05:00
stephentoub 098517bc6f Add a few PlatformNotSupported exception messages
Most of the PlatformNotSupportedExceptions we throw in our Unix code paths are unconditional, e.g. in System.Console:
```C#
public static string Title
{
    get { throw new PlatformNotSupportedException(); }
    set { ... }
}
```
making it easy to understand without a customized message that the method being called isn't supported.

However, when there's more nuance, e.g. when the operation isn't supported because of a particular parameter value being used, we do want to use a message to clarify exactly what's not supported.  Most such cases already have a custom message, but a few don't.

This commit fixes those that I could find that still need one (if we encounter more, we can add those on a case-by-case basis).


Commit migrated from https://github.com/dotnet/corefx/commit/1f9c90af9b91060558d2e4995d14202f4087cf7b
2016-03-07 14:39:15 -05:00
stephentoub 38f7d19954 Update packages to rc3-23907
Commit migrated from https://github.com/dotnet/corefx/commit/baed539ebb753fefc91da9870ddeee72df0a6e14
2016-03-07 10:12:40 -05:00
stephentoub f3434408bc Update xunit.netcore.extensions to 00187
Commit migrated from https://github.com/dotnet/corefx/commit/3cfd81e7369628d052da6367b28c6f5b5839f55d
2016-03-03 22:06:40 -05:00
Deepak Shankargouda 74a631b19c Updateing xunit.performance.* rev num
Commit migrated from https://github.com/dotnet/corefx/commit/7c983ea7555d72b5d18a329f55e48d751013e778
2016-03-03 10:17:25 -08:00
stephentoub 9b4473ede7 Upgrade package versions to rc3-23901
Commit migrated from https://github.com/dotnet/corefx/commit/55246a7fc60807d021fded5e333784956a662a51
2016-03-02 07:40:12 -05:00
Eric St. John 19554adc35 Update buildtools and change validation framework
Update BuildTools to 1.0.25-prerelease-00180

Change validation framework moniker from dnxcore50 to
netstandardapp1.5.


Commit migrated from https://github.com/dotnet/corefx/commit/7c50768be0a2008480aa22ddb8038fdcb0e8039b
2016-02-29 14:43:26 -08:00
Pallavi Taneja 38e2f4de64 Update the packages
Commit migrated from https://github.com/dotnet/corefx/commit/be7151b45a54577c2e28c56977408d7d61ed0ea9
2016-02-29 13:09:16 -08:00
stephentoub c2f4b4f6d3 Remove problematic ArrayPool usage
We decided in the design meeting today that we should only be using ArrayPool in corefx itself in places where we can guarantee the types/methods won't cause corruption, even if due to misuse. Some of the usage we've already put in place doesn't meet this bar and needs to be removed.   For example, we use ```ArrayPool<byte>.Shared``` in a special CopyToAsync implementation, but in doing so we hand a buffer from the pool out to the constiuent streams, and a poorly behaving stream could end up holding on to the buffer even after CopyToAsync has returned to the pool, such as if a Stream.WriteAsync implementation had a bug and completed the returned task before it was actually done with the buffer.

This commit removes all such usage (which we only very recently added).


Commit migrated from https://github.com/dotnet/corefx/commit/908c81d7a8c98f3f4dc1f6302ad7690a952c33c4
2016-02-26 15:36:52 -05:00