ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Linux SVRCONN channel STOPPING

Post new topic  Reply to topic
 Linux SVRCONN channel STOPPING « View previous topic :: View next topic » 
Author Message
cheanfeiy
PostPosted: Wed Oct 06, 2004 7:15 pm    Post subject: Linux SVRCONN channel STOPPING Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Linux SVRCONN channel STOPPING
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.