all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* FOR-RELEASE: Windows related bugs
@ 2006-06-17 22:42 Kim F. Storm
  2006-06-19  7:32 ` dhruva
  0 siblings, 1 reply; 4+ messages in thread
From: Kim F. Storm @ 2006-06-17 22:42 UTC (permalink / raw)



Would someone please look at the following Windows specific problems
which preferably should be solved before the release.


** Markus Gritsch's report about Emacs looping on Windoze with the following
emacs file, and then reduce Emacs frame width to "something quite narrow":
	(setq-default truncate-lines t)
	(custom-set-variables
	 '(hscroll-margin 20)
	 '(hscroll-step 1)
	)


** TCP server processes do not work on Windows.

TCP/IP server processes created with `make-network-process' consume
excesive CPU on some Windows environments.  Usages of 50% and 100%
CPU time have been observed on different Window XP configurations.
Seems to be a problem in sys_select in w32proc.c.

In its current form, it sys_select says the socket is ready, so we
call server_accept_connection which again calls accept() which returns
-1 with errno == WSAEWOULDBLOCK (10035) indicating that there is no
pending connection to accept.

It seems that to fix this, w32 server sockets must use WSAAsyncSelect
+ FD_ACCEPT to request notifications of incoming connections...

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

* Re: FOR-RELEASE: Windows related bugs
  2006-06-17 22:42 FOR-RELEASE: Windows related bugs Kim F. Storm
@ 2006-06-19  7:32 ` dhruva
  2006-06-19  8:01   ` Juanma Barranquero
  0 siblings, 1 reply; 4+ messages in thread
From: dhruva @ 2006-06-19  7:32 UTC (permalink / raw)
  Cc: emacs-devel

Hi,
 I tried both the cases on CVS HEAD version of GNU Emacs built using
MinGW32 on W-XP machine.
 I did not experience any problems. For the TCP server case, I used
the "gnuserv" to test. I have been using it ever since I remember and
have never had any problems.

Please let me know if you need any other info that would help in
resolving the problem if any.

-dk

On 6/18/06, Kim F. Storm <storm@cua.dk> wrote:
>
> Would someone please look at the following Windows specific problems
> which preferably should be solved before the release.
>
>
> ** Markus Gritsch's report about Emacs looping on Windoze with the following
> emacs file, and then reduce Emacs frame width to "something quite narrow":
>         (setq-default truncate-lines t)
>         (custom-set-variables
>          '(hscroll-margin 20)
>          '(hscroll-step 1)
>         )
>
>
> ** TCP server processes do not work on Windows.
>
> TCP/IP server processes created with `make-network-process' consume
> excesive CPU on some Windows environments.  Usages of 50% and 100%
> CPU time have been observed on different Window XP configurations.
> Seems to be a problem in sys_select in w32proc.c.
>
> In its current form, it sys_select says the socket is ready, so we
> call server_accept_connection which again calls accept() which returns
> -1 with errno == WSAEWOULDBLOCK (10035) indicating that there is no
> pending connection to accept.
>
> It seems that to fix this, w32 server sockets must use WSAAsyncSelect
> + FD_ACCEPT to request notifications of incoming connections...
>
> --
> Kim F. Storm <storm@cua.dk> http://www.cua.dk
>
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
>


-- 
dhruva (dk)
Contents reflect my personal views only!

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

* Re: FOR-RELEASE: Windows related bugs
  2006-06-19  7:32 ` dhruva
@ 2006-06-19  8:01   ` Juanma Barranquero
  2006-06-19  8:29     ` dhruva
  0 siblings, 1 reply; 4+ messages in thread
From: Juanma Barranquero @ 2006-06-19  8:01 UTC (permalink / raw)


On 6/19/06, dhruva <dhruvakm@gmail.com> wrote:

> For the TCP server case, I used
> the "gnuserv" to test.

I'm not sure what do you mean by "using the gnuserv to test"; the
problem is not related to gnuserv.

Just start the task manager and Emacs, and then do:

 M-: (make-network-process :name "test" :server t :service t) [RET]

and watch the CPU usage go to 50% or 100% (depending on operating
system, system setup, etc.).

-- 
                    /L/e/k/t/u

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

* Re: FOR-RELEASE: Windows related bugs
  2006-06-19  8:01   ` Juanma Barranquero
@ 2006-06-19  8:29     ` dhruva
  0 siblings, 0 replies; 4+ messages in thread
From: dhruva @ 2006-06-19  8:29 UTC (permalink / raw)
  Cc: emacs-devel

Hi,
 I confirm the TCP related problem. I tried with a server replacement
I had writtnd for GNUserv. The CPU usage is consistently above 80%!

 I was of the impression that "gnuserv" was using the function
"make-network-process". Sorry for jumping to conclusions too fast.

-dk

On 6/19/06, Juanma Barranquero <lekktu@gmail.com> wrote:
> On 6/19/06, dhruva <dhruvakm@gmail.com> wrote:
>
> > For the TCP server case, I used
> > the "gnuserv" to test.
>
> I'm not sure what do you mean by "using the gnuserv to test"; the
> problem is not related to gnuserv.
>
> Just start the task manager and Emacs, and then do:
>
>  M-: (make-network-process :name "test" :server t :service t) [RET]
>
> and watch the CPU usage go to 50% or 100% (depending on operating
> system, system setup, etc.).
>
> --
>                     /L/e/k/t/u
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
>


-- 
dhruva (dk)
Contents reflect my personal views only!

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

end of thread, other threads:[~2006-06-19  8:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-17 22:42 FOR-RELEASE: Windows related bugs Kim F. Storm
2006-06-19  7:32 ` dhruva
2006-06-19  8:01   ` Juanma Barranquero
2006-06-19  8:29     ` dhruva

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.