We are running a sockets application using the supplied standard listener and (intermittently) receiving errno 113 (EBADF) on SELECT.
We have run a CTRACE with SOCKAPI option and we can see that the failing SELECT shows
DIAG. RSN: 1120011Cx
ERRNO....: 113 (EBADF)
And shows a SUBTASK values of zeros (SUBTASK..00000000 00000000)
The corresponding TAKESOCKET also shows a SUBTASK values of zeros (SUBTASK..00000000 00000000) instead of the expected format of e.g. 0001234S.
Can someone explain why the SUBTASK might be set to this value?