crosswalk-project / crosswalk-ios

Crosswalk Project for iOS
https://crosswalk-project.org/
BSD 3-Clause "New" or "Revised" License
117 stars 77 forks source link

Replace embedding http server with swifter. #42

Closed jondong closed 9 years ago

jondong commented 9 years ago

Swifter is an swift written http server which is tiny and fast. We use it to replace the built-in simple http server for easier maintainance.

Swifter: https://github.com/glock45/swifter.git

zliang7 commented 9 years ago

How to deal with 2 or more WebView instances? Or we will support only one in a application?

jondong commented 9 years ago

I suppose this is guaranteed by our implementation, as key.httpd is a static class property. The old implementation always hang on multiple resource loadings, I haven't decided if we need to spend much effort on debugging the http embedding server.

zliang7 commented 9 years ago

Sorry, my comment is unclear. I mean the port number of swifter here is fixed(8080), so 2 server can't be started on the same port. If swifter can't support dynamic port, we make a server global for all webviews.