Uh oh!
There was an error while loading. Please reload this page.
conn: create from socket fd - #316
Conversation
f033280 to
df0eec0Comparedf0eec0 to
5b9f1ccCompareUh oh!
There was an error while loading. Please reload this page.
c77681b to
8aaece6Compareaskalt
commented
Nov 2, 2023
There will be one more test (with Tarantool made sockets and child process), but in general it is already ready for the review. |
Uh oh!
There was an error while loading. Please reload this page.
7d6454e to
39815c1CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
oleg-jukovec
left a comment
There was a problem hiding this comment.
selectmust have respect the timeout setting for non-blocking sockets.- We need to think what we could to do if fd the socket is blocking and the timeout is set. The only way I see is to turn the socket into non-blocking mode.
39815c1 to
02d7bc2CompareUh oh!
There was an error while loading. Please reload this page.
02d7bc2 to
5712143Compare5712143 to
6b00156Compare
oleg-jukovec
left a comment
There was a problem hiding this comment.
Thank you for the patch!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
d470f82 to
42e7f85CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
195b3c9 to
543e17dCompare
DifferentialOrange
left a comment
There was a problem hiding this comment.
Sorry for the long delay, I was a bit busy. Let's fix the last description and I'll merge it.
| raise ConfigurationError("need to specify both host and port, " | ||
| "port only in the case on Unix sockets, " | ||
| "or socket_fd in the case of socket fd") |
There was a problem hiding this comment.
| raiseConfigurationError("need to specify both host and port, " | |
| "port only in the case on Unix sockets, " | |
| "or socket_fd in the case of socket fd") | |
| raiseConfigurationError("need to specify host/port, " | |
| "port (in case of Unix sockets)" | |
| "or socket_fd") |
This patch adds the ability to create Tarantool connection using an existing socket fd. To achieve this, several changes have been made to work with non-blocking sockets, as `socket.socketpair` creates such [1]. The authentication [2] might have already occured when we establish such a connection. If that's the case, there is no need to pass 'user' argument. On success, connect takes ownership of the `socket_fd`. 1. tarantool/tarantool#8944 2. https://www.tarantool.io/en/doc/latest/dev_guide/internals/iproto/authentication/Closes#304
543e17d to
8da5df2Compare
This patch adds the ability to create Tarantool connection using an existing socket fd.
I didn't forget about:
Closes#304