better messages
This commit is contained in:
@@ -2140,7 +2140,7 @@ int camessage ( struct client *client )
|
||||
if ( msgsize > client->recv.maxstk ) {
|
||||
casExpandRecvBuffer ( client, msgsize );
|
||||
if ( msgsize > client->recv.maxstk ) {
|
||||
const char *pCtx = "rsrv: CA request message too large";
|
||||
const char *pCtx = "CAS: server unable to load large request message";
|
||||
send_err ( &msg, ECA_TOLARGE, client, pCtx );
|
||||
log_header ( pCtx , client, &msg, 0, nmsg );
|
||||
assert ( client->recv.cnt <= client->recv.maxstk );
|
||||
|
||||
@@ -331,11 +331,12 @@ LOCAL void log_one_client (struct client *client, unsigned level)
|
||||
send_delay = epicsTimeDiffInSeconds(¤t,&client->time_at_last_send);
|
||||
recv_delay = epicsTimeDiffInSeconds(¤t,&client->time_at_last_recv);
|
||||
|
||||
printf( "%s(%s): User=\"%s\", V%s, Channel Count=%d\n",
|
||||
printf( "%s(%s): User=\"%s\", V%u.%u, Channel Count=%d\n",
|
||||
clientHostName,
|
||||
client->pHostName ? client->pHostName : "",
|
||||
client->pUserName ? client->pUserName : "",
|
||||
CA_VERSION_STRING ( client->minor_version_number ),
|
||||
CA_MAJOR_PROTOCOL_REVISION,
|
||||
client->minor_version_number,
|
||||
ellCount(&client->addrq));
|
||||
if (level>=1) {
|
||||
printf ("\tTask Id=%p, Protocol=%3s, Socket FD=%d\n", client->tid,
|
||||
|
||||
Reference in New Issue
Block a user