Artifacts Associated With Ticket 496733ffffffffff
Ticket change [8bb01f3870] (rid 127609) by mdejong on 2001-12-26 06:50:10:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I ran into this bug while re-implementing fconfigure in Jacl. It seems the Tcl_GetChannelOption function does not quite know what to do about a channel that is neither readable nor writable. Here is what it currently returns: % set sock [socket -server accept 0] sock3 % fconfigure $sock -blocking 1 -buffering full -buffersize 4096 -encoding iso8859-1 -eofchar -translation -sockname {0.0.0.0 0.0.0.0 2001} The -eofchar and -translation properties should at least have some value in the list. What exactly these properties would be used for on a server socket is not clear. For example, why would you want to set the -blocking property on a server socket? Also note that the Tcl_SetChannelOption method does not know how to set these values since it is not clear if the input out the output value would be changed for a server socket. The quick solution I came up with was to just pretend these values are read only. It was easy to implement and test and I can't imagine this would actually matter to anyone, so it seemed like the right thing to do. The attached patch implements these changes and add some test cases that check the behavior. - foundin initialized to: "obsolete: 8.4a4"
- priority initialized to: "3 Low"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mdejong"
- subsystem initialized to: "24. Channel Commands"
- title initialized to: "Possible fix for obscure fconfigure bug"
- type initialized to: "Bug"
Ticket change [6d8684dea8] (rid 128715) by mdejong on 2001-12-26 13:50:11:
- icomment:
File Added - 15124: noread_write_channel.patch
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment:
Ticket change [a4f8d872fa] (rid 110293) by andreas_kupries on 2002-01-25 01:20:49:
- assignee changed to: "mdejong"
- icomment:
Logged In: YES user_id=75003 The patch applied with offsets to the current head, but the result was ok. The patched core configured and compiled flawless (Linux). The test "socket-7.3" failed, because the length of the result returned by fconfigure changed now that eofchar and translation have values. I accept the patch, but also ask you to additionally update the failed test before committing everything.
- login: "andreas_kupries"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- username: "andreas_kupries"
Ticket change [30581b3ee8] (rid 93236) by hobbs on 2002-01-25 01:30:04:
- icomment:
Logged In: YES user_id=72656 I would also like to see this applied to the 8-3-1-branch.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [7e3c8fbf9d] (rid 97369) by mdejong on 2002-01-26 07:30:58:
- closedate changed to: "2002-01-26T00:30:58"
- closer changed to: "mdejong"
- icomment:
Logged In: YES user_id=90858 I added the attached patch to both the HEAD and the 8.3 branch. The socket-7.3 test has been fixed.
- login: "mdejong"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "mdejong"
Add attachment "noread_write_channel.patch2" [7415e07a1a] (rid 105140) by mdejong on 2002-01-26 07:30:58.
Ticket change [309f7a73c6] (rid 93288) by mdejong on 2002-01-26 07:30:59:
- icomment:
File Deleted - 15124: File Added - 16786: noread_write_channel.patch2
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment: