Comments (3)
I've seen this happen a few times before, I think when greping a bunch of one
line, many thousand character files.
I'll take a look.
Original comment by [email protected]
on 24 Dec 2010 at 11:09
- Changed state: Accepted
from conque.
A fix has been checked into trunk, and will go out with the next release. If
you want it before then, make the following changes in
.vim/autoload/conque_term/conque_subprocess.py
Index: autoload/conque_term/conque_subprocess.py
===================================================================
--- autoload/conque_term/conque_subprocess.py (revision 435)
+++ autoload/conque_term/conque_subprocess.py (working copy)
@@ -120,6 +120,7 @@
output = ''
read_timeout = float(timeout) / 1000
+ read_ct = 0
try:
# read from fd until no more output
@@ -129,12 +130,19 @@
lines = ''
for s_fd in s_read:
try:
- lines = os.read(self.fd, 32)
+ # increase read buffer so huge reads don't slow down
+ if read_ct < 10:
+ lines = os.read(self.fd, 32)
+ elif read_ct < 50:
+ lines = os.read(self.fd, 512)
+ else:
+ lines = os.read(self.fd, 2048)
+ read_ct += 1
except:
pass
output = output + lines.decode('utf-8')
- if lines == '':
+ if lines == '' or read_ct > 100:
break
except:
pass
Original comment by [email protected]
on 26 Dec 2010 at 4:16
- Changed state: Fixed
from conque.
:) thanks!
Original comment by [email protected]
on 27 Dec 2010 at 6:50
from conque.
Related Issues (20)
- Vim exits catching deadly signal HUP HOT 2
- Error mapping message when pausing terminal with F8 HOT 1
- incorrect display when insert/delete characters into a pending command
- Python Interactive Shell doesn't work after 2 HOT 1
- Add support to wrap text written to terminal
- Copy/Paste not working with MacVim
- Bash inside Vim not working properly HOT 1
- F9 Crashes Vim
- Python files missing from official git repo
- Error on exit
- Default g:ConqueTerm_CWInsert = 1 out of the box
- Non-blocking, asynchronous terminal emulation in Vim.
- Vim inside Vim only partially works
- Conque confused about the position of the prompt if I edit previous output interactively
- vim nested in conqueterm
- Can you push version 2.3 to vim-scripts?
- Problem on CentOS 5.5 vim 7.0.237
- Registers do not work properly in ConqueTerm HOT 5
- Fix CloseOnEnd feature HOT 1
- Does not work with MacVim (ImportError)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conque.