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
Smartcard timeout with high latency networks (>60ms) #234
Comments
It could be this https://msdn.microsoft.com/en-us/library/cc229803.aspx ? dwTimeout | 0x0000EA60 | 60000 where is defined this valued? can be increased? Thanks |
Hi, Anybody can give some information where I can find more ifnormation about this issue, can be modified this timeout? If it is possible where and that issued can generate? Thanks |
@trentasis,
Meanwhile, could you specify (if you can remember) which rdesktop version does not show such an error? |
NOT sure but seems that errors appears connecting with windows 2003 and 2012, but smargcard works with 2003, but same version to 2012 with high latency is not working Thanks |
Hi, Any news about this issue? |
@trentasis, sorry for the delay, was settling at the new place. |
Ok, thanks for your information |
If I can do any action, I can help |
What application do you use to work with smartcards? |
Is a owned code, and used with safesign drivers Same config used in local network at 1ms works but with high latencies no |
Could you please check the branch with smartcard fixes from #257 (https://github.com/uglym8/rdesktop/tree/sc_drop_refs)? I could reproduce the issue with hanging proprietary application when the latency is 60 ms and using the above branches fixes this issue. If it doesn't help we'll dig deeper:) TIA. |
Perfect! |
Hi! I'll merge #258 today as I've haven't seen formal objections so far, got confirmation that it works (#257) and the changes are easily revertible in a case of any issues. |
Merged #258. |
Great job! |
Thanks |
Hi,
I have detected that if you use -r scard with a remote environment (for example with ADSL that reports a 60ms latency)
Error reported in debug mode is:
Protocol(debug): rdpdr_send_completion()
Protocol(debug): channel_send(), length = 100
Protocol(debug): channel_send(), sending 100 bytes with FLAG_FIRST set
Protocol(debug): rdpdr_process()
SmartCard(debug): TS_SCardGetStatusChange(), context: 0x00000010 [0x11afd155], timeout: 0x000003e8, count: 1
SmartCard(debug): TS_SCardGetStatusChange(), reader='Cherry KC 1000 SC [KC 1000 SC] 00 00', user=(nil), state=6012200060122, event=0x00313520
Protocol(debug): rdpdr_process()
SmartCard(debug): TS_SCardGetStatusChange(), context: 0x0000000e [0x3eb51666], timeout: 0x0000ea60, count: 1
SmartCard(debug): TS_SCardGetStatusChange(), reader='\?PnP?\Notification', user=(nil), state=100000000, event=0x00000000
SmartCard(debug): TS_SCardGetStatusChange(), success
SmartCard(debug): TS_SCardGetStatusChange(), reader='\?PnP?\Notification', user=(nil), state=100000000, event=0x00000000
Protocol(debug): rdpdr_send_completion()
Protocol(debug): channel_send(), length = 100
Protocol(debug): channel_send(), sending 100 bytes with FLAG_FIRST set
Protocol(debug): rdpdr_process()
SmartCard(debug): TS_SCardGetStatusChange(), context: 0x0000000e [0x3eb51666], timeout: 0x0000ea60, count: 1
SmartCard(debug): TS_SCardGetStatusChange(), reader='\?PnP?\Notification', user=(nil), state=100000000, event=0x00000000
SmartCard(debug): TS_SCardGetStatusChange(), success
SmartCard(debug): TS_SCardGetStatusChange(), reader='\?PnP?\Notification', user=(nil), state=100000000, event=0x00000000
Protocol(debug): rdpdr_send_completion()
Protocol(debug): channel_send(), length = 100
Protocol(debug): channel_send(), sending 100 bytes with FLAG_FIRST set
Protocol(debug): rdpdr_process()
Same rdesktop command using from local network issue is not reproduced (<1ms), tried with windows 2003 and also with windows 2012r2, with windwos 2003 you can work, but seems that with widnows 2012r2 is not working and you can't work with smartcards
Tried with multiple smartcard reader and multiple smartcards, always error is reported and impossible to work with windows 2012r2
I have tried to search timeout parameter in rdesktop code to find the issue, but my knowledge with smartcards is low...
Anybody can help?
Tested with latest master branch version
Thanks
The text was updated successfully, but these errors were encountered: