Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send input to the remote command asynchronously #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

neykov
Copy link
Contributor

@neykov neykov commented Jul 8, 2017

Based on the @semancik's prototype in issue #53.
Depends on #65 because uses WinRmClient concurrently.

Successfully tested against Windows 7.
Failed to get it working against Windows Server 2012R2. Sending any input blocks and the process never receives it. I've been able to replicate with the Windows' winrs tool which blocks in a similar way, suggesting it's not an implementation incompatibility, but a server-side behaviour.

If I'm not able to get this working against Windows Server 2012R2, then I don't think it's worth merging this PR.

neykov added 2 commits July 8, 2017 21:45
…to thread safety

AddressingProperties was shared between all requests, making it impossible to use the same WinRmClient concurrently. It stores things like the current action name (which we had to update because it takes the first one otherwise), the message id. We needed that so we can force CXF into using the 2004 version of the addressing namespace. The changes here take a different approach (creating a policy and setting a special assertion on it), causing CXF to create the AddressingProperties object per request.
@neykov
Copy link
Contributor Author

neykov commented Jul 27, 2017

I've posted a question to SO, describing the problem with blocking input - https://stackoverflow.com/questions/45349118/windows-2012r2-doesnt-accept-input-from-winrs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant