x3270 stays on X Wait after the first screen, and contention resolution
When x3270, c3270 or wc3270 locks the keyboard with X Wait after you log in, what the contentionResolution setting does and how to turn it off to test.
You connect with x3270, log in, and then the bottom line shows X Wait and the keyboard stays locked. This page covers one setting that is worth testing when the same host works in other clients.
First, read what the message means in x3270 and c3270 status line. X Wait normally means the client is waiting for the host to unlock the keyboard, so a busy host is the first thing to rule out.
What contention resolution is
The x3270 wiki describes the contentionResolution resource: when it is true, which is the default, the emulator negotiates the protocol extensions in draft-ietf-tn3270e-extensions-04. That draft corrects a number of flaws in the TN3270E protocol. In particular it lets the emulator learn exactly when a TSO host is ready to accept another command. The resource was added in x3270 4.2.
The wiki says it should be disabled only if you suspect a bug in the x3270 implementation of it.
You can see the same idea in the lock flags: Query(KeyboardLockDetail) can report bid, meaning the keyboard is blocked by a contention-resolution BID operation.
Turn it off to test
Start the client with the resource set to false:
x3270 -set contentionResolution=false
The -set option sets a resource to a value. The same resource is listed for x3270, c3270, wc3270, s3270 and b3270. Since release 4.3ga9, the release notes say you can also toggle the setting at runtime.
If the keyboard unlocks, the lock was tied to this part of TN3270E. You can leave it off for that host.
If nothing changes, turn it back on. The cause is somewhere else, for example a host application that is waiting, or a screen that needs a different keyboard action. See Keyboard locked.
Related
Contention resolution is a TN3270E extension. How the client and the host agree on the mode is in TN3270E negotiation.