twitter-archive / cloudhopper-smpp

Efficient, scalable, and flexible Java implementation of the Short Messaging Peer to Peer Protocol (SMPP)
Other
382 stars 356 forks source link

DeliverSmResp is very slow #126

Closed cutout33 closed 6 years ago

cutout33 commented 8 years ago

I have a receiver session to handle DeliverSm, the problem is that DeliverSmResp takes between 100-1000 ms. is there a way to speed this up? here is how I configure the session:

    SmppSessionConfiguration sessionConfig = new SmppSessionConfiguration();
    sessionConfig.setType(SmppBindType.RECEIVER);
    sessionConfig.setHost(smscHost);
    sessionConfig.setPort(smscPort);
    sessionConfig.setSystemId(smscUsername);
    sessionConfig.setPassword(smscPassword);
    sessionConfig.setSystemType(smscSystemType);
    sessionConfig.setWindowSize(executor.getMaxPoolSize());
    if (smscInterfaceVersion.equals("3.4")) {
        sessionConfig.setInterfaceVersion((byte) 0x34);
    } else {
        sessionConfig.setInterfaceVersion((byte) 0x30);
    }
    sessionConfig.setBindTimeout(smscReceiveTimeout);
    sessionConfig.setRequestExpiryTimeout(smscReceiveTimeout);
    DefaultSmppClient client = new DefaultSmppClient();
    receiverSession = client.bind(sessionConfig, new DefaultSmppSessionHandler() {
        public PduResponse firePduRequestReceived(PduRequest pdu) {
            if (pdu.getCommandId() == 0x00000005) {
                dilversm_thread_counter.incrementAndGet();
            } else if (pdu.getCommandId() == 0x00000015) {
                last_receiver_enquire_link = System.currentTimeMillis();
            }
            return pdu.createResponse();
        }
    });
faizann commented 6 years ago

Hi cutout33 Did you figure out this issue?

cutout33 commented 6 years ago

no, i switched to open smpp https://github.com/OpenSmpp/opensmpp