unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* process.c: read_process_output: hard coded 4096 bytes read limit
@ 2013-06-22 10:05 Miguel Guedes
  2013-06-22 17:27 ` Paul Eggert
  2013-06-23  9:28 ` Andreas Schwab
  0 siblings, 2 replies; 8+ messages in thread
From: Miguel Guedes @ 2013-06-22 10:05 UTC (permalink / raw)
  To: emacs-devel

Hello List,

In process.c, function read_process_output, all reads are limited to a 
maximum of 4096 bytes.  What is the rationale behind imposing a hardcoded 
limit of 4096 bytes per read from a process channel? (why isn't the 
user allowed to specify this read limit when creating a process/
connection?)

A minor mode I've written that sometimes receives 500-800KB of data as a 
response from an async network connection (opened via make-network-
process) takes several seconds to fully receive the data due to the hard 
coded limit mentioned above and the fact that emacs waits between reads  
(probably in wait_reading_process_output upon receiving a signal in 
sigchld_handler).

-- 
Miguel




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-27  6:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-22 10:05 process.c: read_process_output: hard coded 4096 bytes read limit Miguel Guedes
2013-06-22 17:27 ` Paul Eggert
2013-06-23  8:59   ` Miguel Guedes
2013-06-23  9:28 ` Andreas Schwab
2013-06-25  8:20   ` Miguel Guedes
2013-06-26 11:57     ` Thien-Thi Nguyen
2013-06-26 13:16       ` Stefan Monnier
2013-06-27  6:03         ` Thien-Thi Nguyen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).