Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

multi-pthread safe? #31

Open
DyncKevin opened this issue Sep 2, 2016 · 2 comments
Open

multi-pthread safe? #31

DyncKevin opened this issue Sep 2, 2016 · 2 comments

Comments

@DyncKevin
Copy link

is this multi-pthreads safe to invoke apn_send()???
does the ssl in this will case dead-lock ???

because When I integrated this library, the usage of cpu increase to 99% after a long time

@adobkin
Copy link
Owner

adobkin commented Sep 4, 2016

It's not thread-safe, you must create apn_ctx in each thread.

@DyncKevin
Copy link
Author

Thank you for your reply, I have moved this part to single thread instead.

Plus, I just heard that Apple has supported 'HTTP/2 Protocol for iOS Push Notification Server(APNS)' (https://dblog.laulkar.com/http2-protocol-for-apns.html), do you have the plan to support it recently ?

郑啸铠
上海铂渊电子科技有限公司
地址:杨浦区国权北路1688号湾谷科技园A6栋
电话: 15618953785
邮编:200439

Original Message
Sender:Anton [email protected]
Recipient:adobkin/[email protected]
Cc:[email protected]; [email protected]
Date:Sunday, Sep 4, 2016 16:44
Subject:Re: [adobkin/libcapn] multi-pthread safe? (#31)

It's not thread-safe, you must create apn_ctx in each thread.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants