[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Mar 3 16:10:10 2003 
Subject:forwarded message suppressing write errors on sockets 
From:A . Sloman 
Volume-ID:1030303.01 

---------- Forwarded message ----------
Date: Mon, 3 Mar 2003 11:02:48 -0500 (EST)
From: Matthias Scheutz <mscheutz@cse.nd.edu>
To: pop-forum@cs.bham.ac.uk
Cc: axs@cs.bham.ac.uk
Subject: suppressing write errors on sockets

I've run into a problem with sockets that are closed by a client (i.e., a
web browser) while the server (a primitive web server written in pop11) is
still writing to it: I keep getting the MISHAP "ERROR WRITING DEVICE",
which crashes my web server (this is produced by the procedure
"Write_error(dev)" in devio.p).

I'm wondering if there is a way to suppress the mishap for write errors on
sockets?  E.g., is it possible to set the flag "M_UNT_IGNORE_WRITE_ERR"
flag for the socket device, something like

comm_sock!D_UNIT_N!UNT_FLAGS || M_UNT_IGNORE_WRITE_ERR ->
   comm_sock!D_UNIT_N!UNT_FLAGS;

which would then make "Write_error(dev)" simply return instead of
producing the mishap?

(I tried to compile the above, which was modelled after the way code was
written in devio.p, but was not successful, in particular, pop did not
recognize the variables, it did not like the "!", and so on...  obviously,
I'm doing something very wrong here :)

Any help on this would be greatly appreciated

Best,


Matthias Scheutz
---------------------------------------------------------------
Assistant Professor                http://www.nd.edu/~mscheutz/
Dept. of Computer Science and Engineering, 351 Fitzpatrick Hall
University of Notre Dame                   Notre Dame, IN 46556
USA                                    Phone: +1 (574) 631-0353