Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while trying to connect with more than one client #31

Open
kirang89 opened this issue May 10, 2015 · 2 comments
Open

Error while trying to connect with more than one client #31

kirang89 opened this issue May 10, 2015 · 2 comments

Comments

@kirang89
Copy link

I've been testing the TLS_support branch for a few days now, and it seems to work fine.

There seems to be an issue, however, when I try and connect more and one client via SSL. This how I connect:

-(void)loadClient {
    NSString *clientId = [NSString stringWithFormat:@"Client-1"];
    NSString *topic = @"r/hello";
    MQTTClient *client = [[MQTTClient alloc]initWithClientId:clientId];
    [client setHost:@"123.456.789.0"];
    [client setPort:8883];
    [client setUsername:@"<username>"];
    [client setPassword:@"<pass>"];
    [client setCafile:[[NSBundle mainBundle]pathForResource:@"ca" ofType:@"crt"]];

    [client connectWithCompletionHandler:^(MQTTConnectionReturnCode code) {
        if (code == ConnectionAccepted) {
            NSLog(@"connection accepted");
            [client subscribe:topic withQos:AtLeastOnce completionHandler:^(NSArray *grantedQos) {
                NSLog(@"Listening");
            }];
        }
    }];
}

However, I get the following error:

0x10a551f89:  movdqu 0x30(%r9), %xmm3                              EXC_BAD_ACCESS(code=2)

I've had no luck debugging this.

@kirang89 kirang89 changed the title Error while trying to connect more than one client Error while trying to connect with more than one client May 10, 2015
@tomahh
Copy link

tomahh commented May 10, 2015

B Ik'nbd

On Sun, May 10, 2015 at 9:17 PM, Kiran Gangadharan
[email protected] wrote:

I've been testing the TLS_support branch for a few days now, and it seems to work fine.
There seems to be an issue, however, when I try and connect more and one client via SSL. This how I connect:

-(void)loadClient {
    NSString *clientId = [NSString stringWithFormat:@"Client-1"];
    NSString *topic = @"r/hello";
    MQTTClient *client = [[MQTTClient alloc]initWithClientId:clientId];
    [client setHost:@"123.456.789.0"];
    [client setPort:8883];
    [client setUsername:@"<username>"];
    [client setPassword:@"<pass>"];
    [client setCafile:[[NSBundle mainBundle]pathForResource:@"ca" ofType:@"crt"]];

    [client connectWithCompletionHandler:^(MQTTConnectionReturnCode code) {
        if (code == ConnectionAccepted) {
            NSLog(@"connection accepted");
            [client subscribe:topic withQos:AtLeastOnce completionHandler:^(NSArray *grantedQos) {
                NSLog(@"Listening");
            }];
        }
    }];
}

However, I get the following error:

0x10a551f89:  movdqu 0x30(%r9), %xmm3                              EXC_BAD_ACCESS(code=2)

I've had no luck debugging this.

Reply to this email directly or view it on GitHub:
#31

@tomahh
Copy link

tomahh commented May 10, 2015

Wdddfx

On Sun, May 10, 2015 at 9:17 PM, Kiran Gangadharan
[email protected] wrote:

I've been testing the TLS_support branch for a few days now, and it seems to work fine.
There seems to be an issue, however, when I try and connect more and one client via SSL. This how I connect:

-(void)loadClient {
    NSString *clientId = [NSString stringWithFormat:@"Client-1"];
    NSString *topic = @"r/hello";
    MQTTClient *client = [[MQTTClient alloc]initWithClientId:clientId];
    [client setHost:@"123.456.789.0"];
    [client setPort:8883];
    [client setUsername:@"<username>"];
    [client setPassword:@"<pass>"];
    [client setCafile:[[NSBundle mainBundle]pathForResource:@"ca" ofType:@"crt"]];

    [client connectWithCompletionHandler:^(MQTTConnectionReturnCode code) {
        if (code == ConnectionAccepted) {
            NSLog(@"connection accepted");
            [client subscribe:topic withQos:AtLeastOnce completionHandler:^(NSArray *grantedQos) {
                NSLog(@"Listening");
            }];
        }
    }];
}

However, I get the following error:

0x10a551f89:  movdqu 0x30(%r9), %xmm3                              EXC_BAD_ACCESS(code=2)

I've had no luck debugging this.

Reply to this email directly or view it on GitHub:
#31

@kirang89 kirang89 mentioned this issue May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants