aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/connection/stream_event_loop.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use frozen string literal in actioncable/Kir Shatrov2017-07-231-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Close the IO from the read loop threadMatthew Draper2016-10-061-0/+1
| | | | | | | | IO#close and IO#read across threads don't get along so well: After T1 enters #read and releases the GVL, T2 can call #close on the IO, thereby both closing the fd and freeing the buffer while T1 is using them.
* Buffer writes to the cable socketsMatthew Draper2016-09-281-8/+38
| | | | | Otherwise, they can sometimes block, leading to reduced system throughput.
* applies new string literal convention in actioncable/libXavier Noria2016-08-061-2/+2
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Support faye-websocket + EventMachine as an optionMatthew Draper2016-03-021-1/+10
|
* Handle more IO errors (especially, ECONNRESET)Matthew Draper2016-01-301-21/+47
| | | | | | Also, address the possibility of the listen thread dying and needing to be respawned. As a bonus, we now defer construction of the thread until we are first given something to monitor.
* Revert "Revert "Eliminate the EventMachine dependency""Matthew Draper2016-01-301-0/+68
|
* Revert "Eliminate the EventMachine dependency"David Heinemeier Hansson2016-01-271-68/+0
|
* Import the relevant portions of faye-websocketMatthew Draper2016-01-241-0/+68
(as adapted to use concurrent-ruby / nio4r instead of eventmachine)