|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Linux SVRCONN channel STOPPING |
« View previous topic :: View next topic » |
Author |
Message
|
cheanfeiy |
Posted: Wed Oct 06, 2004 7:15 pm Post subject: Linux SVRCONN channel STOPPING |
|
|
Apprentice
Joined: 21 Jun 2003 Posts: 26
|
I've developed send & receive exit program to encrypt / decrypt data for my W2K MQ Client transmission data to Linux server QM. Both send & receive exit works fine with simple PUT / GET load test.
However, when I try with concurrent PUT and GET request from my W2K MQ Client, the Linux QM SVRCONN channel turned into STOPPING status and hanged after all the messages have been processed .
Later on, I wrote a dummy receive exit program which does nothing (see below for my source program):
receiveexit.h
Quote: |
#include <stdio.h>
#include <cmqc.h>
#include <cmqxc.h>
#include <ctype.h>
#ifdef WIN32
# define RET_TYPE DLL_EXPORT void
#else
# define RET_TYPE void MQENTRY
#endif
#define MEDIUM_BUFFER 256
|
receiveexit.c
Quote: |
#include "receiveexit.h"
void MQStart(void){;}
void MQENTRY Secure(
PMQVOID pstChannelExitParms, PMQVOID pstChannelDef,
PMQLONG pldDataLen,PMQLONG pldAgentBufLen,
PMQVOID pstrAgentBuf,PMQLONG pldExitBufLen,PMQPTR pstrExitBuf)
{
PMQCXP pstChlParms = (PMQCXP)pstChannelExitParms;
PMQCD pstChDef = (PMQCD)pstChannelDef;
int dzStat = 0;
short sdzIndent = 0;
unsigned char *puszMsgBuf = NULL;
unsigned int udzMsgBufLen = 0;
char szIniFile[MEDIUM_BUFFER];
int dzDone = 0;
/* Exit Buffer Handle */
unsigned char *pHandle = NULL;
unsigned char *pBuf = NULL;
switch (pstChlParms->ExitReason)
{
case MQXR_INIT :
pstChlParms->ExitResponse = MQXCC_OK;
pstChlParms->ExitResponse2 = MQXCC_OK;
pstChlParms->Feedback = 0L;
break;
case MQXR_TERM :
pstChlParms->ExitResponse = MQXCC_OK;
pstChlParms->ExitResponse2 = MQXCC_OK;
pstChlParms->Feedback = 0L;
break;
case MQXR_XMIT :
pstChlParms->ExitResponse = MQXCC_OK;
pstChlParms->ExitResponse2 = MQXR2_USE_AGENT_BUFFER;
break;
}
}
|
I link the program compiled object with my owned shared libraries to create the receive exit program on Linux server. I repeat the concurrent PUT and GET request load test and with only this receive exit program activated at SVRCONN channel. But, I still hitting the SVRCONN channel STOPPING status.
I also tried to create this receive exit program without linking to my owned shared libraries and repeat the concurrent PUT and GET requests load test. Surprisingly the test result was normal.
I wanted to highlight here that in the first scenario, I just link the receive exit program with my owned shared libraries but I'm NOT calling any functions provided by the shared libraries.
Does anyone also facing the same problem on Linux platform?
p/s : FYI, I've the same program ported on W2K, AIX, and Solaris and all working fine.
Regards[/b] |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|