alwx / react-native-http-bridge

HTTP server for React Native
118 stars 78 forks source link

Use async request response API of GCDWebserver #13

Closed harryeakins closed 4 years ago

harryeakins commented 5 years ago

Use async request response API of GCDWebserver instead of the sync API + polling.

This reduces the number of idle wakeups dramatically. Before, there were 100 idle wakes per second per pending HTTP response, which made it very easy to trip the 150/sec average idle wakeup rate limit set by iOS.

harryeakins commented 5 years ago

Also added a commit to make the access of the NSMutableDictionary thread-safe.