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

Static file serving failing on 0.25 #678

Closed
esminerva opened this issue Aug 9, 2016 · 3 comments
Closed

Static file serving failing on 0.25 #678

esminerva opened this issue Aug 9, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@esminerva
Copy link
Contributor

router.all("/", middleware: StaticFileServer(path: "./app/views"))

This worked in 0.22, but get this runtime error in 0.25:

ERROR: write(from:) IncomingSocketHandler.swift line 125 - Write to socket (file descriptor 6 failed. Error number=35. Message=Resource temporarily unavailable.

@shmuelk
Copy link
Collaborator

shmuelk commented Aug 10, 2016

I'm looking into this problem.

@shmuelk shmuelk added this to the 0.26 milestone Aug 10, 2016
@shmuelk shmuelk self-assigned this Aug 10, 2016
@shmuelk
Copy link
Collaborator

shmuelk commented Aug 10, 2016

@joyychang I forgot to ask, on what platform did this occur? Was the client remote from the server or was it on the same box (i.e. http://localhost:pppp in your browser) ?

@esminerva
Copy link
Contributor Author

The server is running on a mac.
We tried both remote access via IP:pppp, and local access via localhost:pppp.
Both experienced the problem.

@ianpartridge ianpartridge modified the milestones: 0.28, 0.26 Aug 11, 2016
shmuelk added a commit to Kitura/Kitura-net that referenced this issue Aug 11, 2016
shmuelk added a commit to Kitura/Kitura-net that referenced this issue Aug 11, 2016
shmuelk added a commit to Kitura/Kitura-net that referenced this issue Aug 11, 2016
shmuelk added a commit to Kitura/Kitura-net that referenced this issue Aug 11, 2016
shmuelk added a commit to Kitura/Kitura-net that referenced this issue Aug 11, 2016
shmuelk added a commit to Kitura/Kitura-net that referenced this issue Aug 15, 2016
…ate writer queue that is also used to serialise access to buffer of data that wasn't written in the first write.
shmuelk added a commit to IBM-Swift/SwiftyJSON that referenced this issue Aug 15, 2016
shmuelk added a commit to IBM-Swift/SwiftyJSON that referenced this issue Aug 15, 2016
ianpartridge pushed a commit to Kitura/Kitura-net that referenced this issue Aug 16, 2016
* Kitura/Kitura#678 Added Asynchronous writes to socket I/O

* Kitura/Kitura#678 Added a test with a get of a large payload

* Kitura/Kitura#678 We now need Dispatch always on Linux as well

* Kitura/Kitura#678 Fixed typo

* Kitura/Kitura#678 Linux fixes and cancel write source when using GCD

* Kitura/Kitura#678 Corrected handling of epoll on Linux. Added a separate writer queue that is also used to serialise access to buffer of data that wasn't written in the first write.
shmuelk added a commit to IBM-Swift/SwiftyJSON that referenced this issue Aug 26, 2016
* Kitura/Kitura#675 Required rename of test module and update of Swift version

* Kitura/Kitura#675 Swift language changes

* Kitura/Kitura#675 Foundation changes

* Kitura/Kitura#675 Changes for Linux

* Kitura/Kitura#675 Changes to get Bool working on OSX

* Kitura/Kitura#678 Changes to get tests to work on OSX

* Kitura/Kitura#678 Changes to get tests compiling on OSX

* Kitura/Kitura#675 Test module name changed

* Kitura/Kitura#675 Fix Dictionaries on macOS

* Kitura/Kitura#675 Fix Arrays on macOS

* Kitura/Kitura#675 Test module name changed

* Kitura/Kitura#675 rawValue of Bools is now a Bool. They can't be cast to Int or Double.

* Kitura/Kitura#675 Class of some NSNumber's has changed. compare fails.
shmuelk added a commit to IBM-Swift/SwiftyJSON that referenced this issue Aug 28, 2016
* Kitura/Kitura#675 Required rename of test module and update of Swift version

* Kitura/Kitura#675 Swift language changes

* Kitura/Kitura#675 Foundation changes

* Kitura/Kitura#675 Changes for Linux

* Kitura/Kitura#675 Changes to get Bool working on OSX

* Kitura/Kitura#678 Changes to get tests to work on OSX

* Kitura/Kitura#678 Changes to get tests compiling on OSX

* Kitura/Kitura#675 Test module name changed

* Kitura/Kitura#675 Fix Dictionaries on macOS

* Kitura/Kitura#675 Fix Arrays on macOS

* Kitura/Kitura#675 Test module name changed

* Kitura/Kitura#675 rawValue of Bools is now a Bool. They can't be cast to Int or Double.

* Kitura/Kitura#675 Class of some NSNumber's has changed. compare fails.

* Kitura/Kitura#675 replaced bridge() with new bridge functions

_bridgeToSwift and _bridgeToObjectiveC

* Kitura/Kitura#675 changed signature of dictionary.enumerateKeysAndObjects

to dictionary.enumerateKeysAndObjects(using:
   {(key: Any, val: Any, stop: UnsafeMutablePointer<ObjCBool>)

* Kitura/Kitura#675 unified String.addingPercentEncoding on both Linux and macOS

* Kitura/Kitura#675 one more case of bridge() changed

to _bridgeToObjectiveC()

* Kitura/Kitura#675 removed redundant whitespace

* Kitura/Kitura#675 unified String.addingPercentEncoding on both Linux and macOS

* Kitura/Kitura#675 cast to String instead of NSString

of the key in enumerateKeysAndObjects

* DEVELOPMENT-SNAPSHOT-2016-08-18-a

* Kitura/Kitura#675 removed Indexable

it will be deprecated in Swift 4.0, implementing Collection is enough

* Kitura/Kitura#697 Updated Swift version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants