View Issue Details

IDProjectCategoryView StatusLast Update
0008056VCOMPONENT-VCLIENTStreamspublic2017-08-29 13:55
ReporterSergey PashkovAssigned ToIvan Smahin 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version7.4.x 
Target Version7.4.xFixed in Version7.4.x 
Summary0008056: VClient doesn't close the socket stream if connection attempt was made to inactive server
Description1. Try to connect to non-existing IP/port
2. Run in the terminal:
 $lsof -p PID
Valentina 71350 user 21u IPv4 0x676fcaf8d1e198f3 0t0 TCP 192.168.1.23:59750->192.168.1.20:15432 (CLOSED)
Valentina 71350 user 23u IPv4 0x676fcaf8cf741ffb 0t0 TCP 192.168.1.23:56220->192.168.1.20:15433 (CLOSED)

Any connection attempt produces a new pair of sockets
Additional InformationIf Valentina Studio bookmark points to such server the limit is exceeded quickly and crash happens.
TagsNo tags attached.

Activities

Sergey Pashkov

Sergey Pashkov

2017-08-29 11:55

developer   ~0009885

void VC_Connection::Close( bool inGraceful )

if( mID != 0 )
{
    ....

    // close stream
    mpIStream->Close();
    mID = 0;
}


But mID is not set for such connection, so the stream left not closed

Issue History

Date Modified Username Field Change
2017-08-29 11:54 Sergey Pashkov New Issue
2017-08-29 11:55 Sergey Pashkov Note Added: 0009885
2017-08-29 13:55 Ivan Smahin Status new => resolved
2017-08-29 13:55 Ivan Smahin Fixed in Version => 7.4.x
2017-08-29 13:55 Ivan Smahin Resolution open => fixed
2017-08-29 13:55 Ivan Smahin Assigned To => Ivan Smahin