summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * Give clearer names to some of the state flags and sync them with ↵bug_13d3af3ad5max2014-04-082-41/+124
| | | | | | | Windows where it makes sense. * Rework WaitForConnect once more to always report ENOTCONN on I/O operations on failed async sockets. * Fix synchronous connections to a server that only listens on IPv6 (or whatever comes later in the list returned by getaddrinfo(), socket-15.*) * Fix spurious writable event on async sockets (socket-14.15).
* Beautify check for async connect reentryoehhar2014-04-081-4/+10
|
* Changed error report logic, that an async connect error is only reported by ↵oehhar2014-04-083-58/+106
| | | | 'fconfigure -error' and not by a possible last command terminating the async connect. The terminating command always returns "socket is not connected" on connect error. In addition, some flags were renamed: TCP_ASYNC_SOCKET to TCP_NONBLOCKING and also the new state flags.
* Rename error to connectError in struct TcpState.max2014-04-071-11/+11
|
* Rename CreateClientSocket to TcpConnectmax2014-04-071-8/+8
|
* Renamed function CreateClientSocket to TcpConnect and variable error to ↵oehhar2014-04-071-23/+28
| | | | connectError
* Return async connect error by first following read or write operation.oehhar2014-04-071-1/+12
|
* Avoid multiple returns of connect errorsoehhar2014-04-041-43/+103
|
* Move tests 8.2 and 8.3 out of the IPv4/IPv6 loop to 14.13 and 14.14.max2014-04-041-31/+32
|
* Fix/improve tests.max2014-04-041-37/+30
|
* Add tests for bugs [336441ed59] and [581937ab1e] from core-8-5-branch.max2014-04-041-0/+29
|
* * Rework WaitForConnect() to fix synchronous completion of asynchronous ↵max2014-04-042-35/+32
| | | | | | connections. * Let TcpInputProc() and TcpOutputProc() fail before calling any I/O syscalls when an asynchronous connection has failed. * Adjust the tests accordingly.
* Make the naming of TcpState variables consistentmax2014-04-041-49/+53
|
* Marked all communication variables which are set by notifier thread with ↵oehhar2014-04-021-3/+4
| | | | "volatile".
* Imported fix for bug [97069ea11a] from branch bug-97069ea11a: empty error ↵oehhar2014-04-011-1/+11
|\ | | | | | | message on stalled background flush after async socket connect fail
| * Fix test failure socket-2.9: "1 {not owner}" instead of "1 {couldn't open ↵oehhar2014-04-011-9/+8
| | | | | | | | socket address already in use}" by only setting returned error message if not jet set.
| * Set return message in close if a flush error is reported (which may be an ↵oehhar2014-04-011-2/+13
| | | | | | | | error from a background flush). Ticket [97069ea11a]
| * Cherry-pick [c54059aaad] from trunk: Added support for reporting TEA-like ↵jan.nijtmans2014-03-314-4/+25
| | | | | | | | | | info via pkg-config. Add missing @TCL_LIB_FLAG@ (derived from ticket [5bcb5026ad])
| * Minimal patch to fix iocmd-23.11. Might not be the best fix, but is *a* fix.dgp2014-03-273-5/+23
| |
| * Test iocmd-23.11 demos another segfault.dgp2014-03-271-0/+15
| |
| * Test iogt-2.4 is another segfault demo for [721ec69271].dgp2014-03-271-0/+33
| |
| * Fix [2f7cbd01c3]: tcl8.6.1 fails to build on FreeBSD 10.0jan.nijtmans2014-03-202-26/+18
| |\
| | * Proposed fix for [2f7cbd01c3].bug_2f7cbd01c3jan.nijtmans2014-03-202-28/+20
| |/
| * Mark io-35.18b test as knownBugjan.nijtmans2014-03-091-10/+10
| |
| * New tests covering INPUT_NEED_NL flag handling. One exposes a bug.dgp2014-02-261-0/+71
| |
* | Removed thread debugging printf messagesoehhar2014-04-011-110/+13
| |
* | Fire also readable event on final async connect failure. Armor ↵oehhar2014-03-241-45/+84
| | | | | | | | WaitForSocketEvent by access signal against notifier thread access.
* | Be sure tsd pointer to the info structure is invalidated before memory freeoehhar2014-03-231-1/+20
| |
* | WaitForConnection like tclUnixSock.c, new option [fconfigure -connecting]oehhar2014-03-141-42/+34
| |
* | file tclWinSock.c reorganized to minimize diff to tclUnixSock.c. No ↵oehhar2014-03-141-1455/+1498
| | | | | | | | functional change
* | Remove writable shortcut and errorneous workaround to get [connect -async] ↵oehhar2014-03-141-18/+18
|\ \ | | | | | | | | | fail error to [fconfigure -error]
| * | Remove writable shortcut and errorneous workaround to get [connect -async] ↵bug_13d3af3ad5_forkoehhar2014-03-141-18/+18
| | | | | | | | | | | | fail error to [fconfigure -error]
* | | * More test improvements for async sockets.max2014-03-142-26/+47
|/ / | | | | | | * Advance async connections whenever the channel is touched (e.g. by [chan configure]). * Add a noblock argument to WaitForConnect(), so that advancing async connections from [chan configure] doesn't block even on a blocking socket.
* | Async connect terminates: fire fileevent by setting readyEvent, propage ↵oehhar2014-03-141-52/+110
| | | | | | | | commit fail message to [fconfigure -error]
* | * Hide transient errors of the internal iterations of [socket -async] ↵max2014-03-112-46/+189
| | | | | | | | | | from the script level. * More tests for corner cases.
* | No [fconfigure -error] error in connect process; gets after failed async ↵oehhar2014-03-111-10/+19
| | | | | | | | connect returns connect error
* | WaitForConnect may only call back to CreateClientSocket when the socket is ↵max2014-03-102-3/+5
| | | | | | | | writable or something. When it does so for a pending socket, it is falsely assumed to have succeeded and a subsequent read/write operation will fail.
* | Additional security for wrong pointeroehhar2014-03-101-0/+6
| |
* | Fire write fileevent if async connect fails finally (test socket-14.2)oehhar2014-03-101-2/+12
| |
* | Also continue async connect without event loop if gets/puts is called (test ↵oehhar2014-03-101-22/+34
| | | | | | | | socket-14.8.*)
* | Workaround if FD_CONNECT notification comes before socket list registration ↵oehhar2014-03-101-80/+184
| | | | | | | | in TcpThreadActionProc
* | * tclUnixSock.c: Fix WaitForConnect() for client sockets that have to try ↵max2014-03-102-29/+190
| | | | | | | | | | | | more than one address. * socket.test: Extend and improve tests for [socket -async] * socket.test: Add latency measuring and calculation for Windows.
* | Still incomplete info structure in event proc: try to protect with locks ↵oehhar2014-03-071-12/+51
| | | | | | | | (unsuccesful). Probably locks in accept socket creation missing.
* | More debug to chase different fd in struct than in callbackoehhar2014-03-062-53/+46
| |
* | Terminate async connect synchronously by any blocking operationoehhar2014-03-061-12/+104
| |
* | "gets" blocked after async cannect: SOCKET_ASYNC_CONNECT was not clearedoehhar2014-03-051-12/+12
| |
* | Refactor the error handling logic around connect()max2014-03-051-20/+17
| |
* | avoid warnings about uninitialized infoPtr in DEBUGmax2014-03-051-2/+2
| |
* | Print out the value of infoPtr in DEBUG, so that coexisting sockets can be ↵max2014-03-051-7/+5
| | | | | | | | distinguished in the output.
* | Next async connect try works. Reset error and move notifier before connect.oehhar2014-03-051-11/+12
| |