Posted by jim guerber on February 24, 2016 at 10:33:15:
In Reply to: CA switch /TSRALL and /S:nnn posted by Richard Neer on February 22, 2016 at 17:15:32:
After much stepping through code, I have your answer. COSW deals with CA sessions not terminal names (term$). Terminal names are changeable by any program to anything (with a 3 character limit). There may be more than 1 term$ with the same name. Comet does not change term$ itself, but a program could.
CA Sessions are fixed. They start with session 1 and go to the number specified in the ini file, with a maximum of 255 sessions. In your case your session 1 is term$ "801" and goes for 51 sessions. So, session 40 would correspond to terminal "840".
The problem you saw was that you requested a session above 255. You requested session 801 (321 hex). That was truncated to 21h (33 decimal), so COSW gave you session 33 (term$="833").
I know, I know. It's flawed, but there is almost no way to give an error message at that point in the code.
If your sessions were below 255 all would have been good.
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.