|
2014-03-24
| ||
| 13:01 | • Ticket [a67f00204c] chan encoding needs to be per-direction status still Ope... artifact: 9be6b20df4 user: dgp | |
|
2014-03-23
| ||
| 19:12 | • Ticket [a67f00204c]: 4 changes artifact: 70507bef3a user: dkf | |
|
2014-03-20
| ||
| 19:39 | • New ticket [a67f00204c]. artifact: 4aec98d545 user: cmcc | |
chan encoding needs to be per-direction
Opena67f00204cf2abfa82f9bf8e5a4a363e1ec58a99Created 13 years agoUpdated 13 years ago
Descriptionplain2014-03-20 19:39:01
Channels may be configured to treat their content as encoded in one of the system encodings. Channels which are sockets don't necessarily need the same encoding on inbound and outbound traffic. One example is in a network server which expects requests in binary or ascii, but simultaneously tries to deliver responses in some encoded form. HTTP is an example of a protocol in which such a pattern can easily arise. Chans should, therefore, be able to have different read and write encodings.
dkfhtml2014-03-23 19:12:09
Workaround: change the encoding when switching from reading to writing. (Don't know what happens with multiple threads, so don't ask me!)
dgpplain2014-03-24 13:01:03
A channel is only managed by a single thread at a time. Tcl_GetChannelThread() will tell you which thread it is.
Log in (anonymous is fine) to add a comment.